Date: Wed, 11 Mar 2009 22:00:03 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern sys_generic.c Message-ID: <200903112200.n2BM0AKQ051003@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2009-03-11 22:00:03 UTC FreeBSD src repository Modified files: sys/kern sys_generic.c Log: SVN rev 189708 on 2009-03-11 22:00:03Z by rwatson When writing out updated pollfd records when returning from poll(), only copy out the revents field, not the whole pollfd structure. Otherwise, if the events field is updated concurrently by another thread, that update may be lost. This issue apparently causes problems for the JDK on FreeBSD, which expects the Linux behavior of not updating all fields (somewhat oddly, Solaris does not implement the required behavior, but presumably our adaptation of the JDK is based on the Linux port?). MFC after: 2 weeks PR: kern/130924 Submitted by: Kurt Miller <kurt @ intricatesoftware.com> Discussed with: kib Revision Changes Path 1.171 +22 -1 src/sys/kern/sys_generic.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903112200.n2BM0AKQ051003>