[Eventmachine-talk] How to keep a pipe open

Bill Kelly
2007-11-30T15:44:06Z

From: Francis Cianfrocca
>
> On Nov 30, 2007 4:41 PM, Duane Johnson <canadaduane at gmail.com>
wrote:
> >
> >        // Set the socketpair nonblocking. Obviously DON''T set
CLOEXEC.
> >
> >        if (!SetSocketNonblocking (sv[0])) {
> >
> >                close (sv[0]);
> >                close (sv[1]);
> >                return NULL;
> >        }
> >
> > Can this change go into the core?
>
> I can do that as soon as I''m sure that the sv[1] descriptor is
never
> read by the reactor.

If I''m not mistaken, the parent closes sv[1] right after the fork()
anyway.


Regards,

Bill