Date: Wed, 3 Jun 2009 15:25:14 +0300 From: Vlad Galu <dudu@dudu.ro> To: freebsd-stable@freebsd.org Subject: Re: poll()-ing a pipe descriptor, watching for POLLHUP Message-ID: <ad79ad6b0906030525r5a1dd6dbhcf4094d7c6759cd2@mail.gmail.com> In-Reply-To: <ad79ad6b0906030515k2e41f4b9t25f752af8ef3866c@mail.gmail.com> References: <ad79ad6b0906030515k2e41f4b9t25f752af8ef3866c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hm, according to the code at http://www.greenend.org.uk/rjk/2001/06/poll.html, it seems to work as expected (returning both POLLIN and POLLHUP), when closing the write end of the pipe from within the same process. On Wed, Jun 3, 2009 at 3:15 PM, Vlad Galu <dudu@dudu.ro> wrote: > Hello, > > Please take a look at the attached code. Shouldn't poll() get a > POLLHUP event when the child process exits, closing the write end of > the pipe? > > Thanks, > Vlad >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad79ad6b0906030525r5a1dd6dbhcf4094d7c6759cd2>