Date: Tue, 25 Aug 2009 21:44:14 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/kern uipc_socket.c Message-ID: <200908252145.n7PLj1IW024665@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2009-08-25 21:44:14 UTC FreeBSD src repository Modified files: sys/fs/fifofs fifo_vnops.c sys/kern uipc_socket.c Log: SVN rev 196556 on 2009-08-25 21:44:14Z by jilles Fix poll() on half-closed sockets, while retaining POLLHUP for fifos. This reverts part of r196460, so that sockets only return POLLHUP if both directions are closed/error. Fifos get POLLHUP by closing the unused direction immediately after creating the sockets. The tools/regression/poll/*poll.c tests now pass except for two other things: - if POLLHUP is returned, POLLIN is always returned as well instead of only when there is data left in the buffer to be read - fifo old/new reader distinction does not work the way POSIX specs it Reviewed by: kib, bde Revision Changes Path 1.153 +3 -0 src/sys/fs/fifofs/fifo_vnops.c 1.342 +7 -5 src/sys/kern/uipc_socket.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908252145.n7PLj1IW024665>