[Eventmachine-talk] How to keep a pipe open

Bill Kelly
2007-12-01T00:55:04Z

From: "Bill Kelly" <billk at cts.com>
>
> From: Francis Cianfrocca
>>
>> On Nov 30, 2007 6:44 PM, Bill Kelly <billk at cts.com> wrote:
>> >
>> > If I''m not mistaken, the parent closes sv[1] right after
the fork()
>> > anyway.
>>
>> You''ve used this feature as much as anyone, Bill. Any reason
not to
>> make this change?
>
> It looks like the Right Thing To Do(tm).
>
> EM (the parent) only cares about sv[0], and the child only
> cares about sv[1].
>
> And it makes sense that a typical child program would NOT
> expect its stdin/stdout to be in non-blocking mode by default.

BTW, I''m not sure how that came across on re-reading it... but
it was (meant) in the style of me thinking aloud, rather than
some sort of scolding pontification. <grin>


Regards,

Bill