More spawn & Windows processes

Pierre A. Humblet Pierre.Humblet@ieee.org
Mon Dec 27 16:13:00 GMT 2004


At 11:05 AM 12/27/2004 -0500, Christopher Faylor wrote:
>On Mon, Dec 27, 2004 at 10:51:58AM -0500, Pierre A. Humblet wrote:
>>  should now be able to save microseconds by simply closing the pipe.
>
>Did you happen to notice that it *used* to be a CloseHandle?

Yes. I think you changed it in an attempt to make P_DETACH work.
The logical parent would read the 0 and declare that the
process chain was logically terminated, despite having the pipe
remain opened (by inheritance) in the detached process.
Now that the pipes are not inherited, the former method
should work just fine.

Pierre



More information about the Cygwin-developers mailing list