On Wed, Jun 3, 2009 at 3:32 PM, Kostik Belousov <[email protected]> wrote:
> On Wed, Jun 03, 2009 at 03:15:32PM +0300, Vlad Galu 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?
>
> It seems that you code forgot to close the write end of the pipe in
> parent. Thus, pipe is referenced by another file descriptor from
> the parent process, and you do not get close event.
>

Aaarhg! You're right! Sorry for the noise!
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to