Getting the pipe guard

Lev Bishop lev.bishop@gmail.com
Sun May 21 14:55:00 GMT 2006


On 5/21/06, Christopher Faylor wrote:

> I've checked in a variation of the above plus some modifications to
> pipe.cc which prevent some handle stomping and may make things work
> better.

I see that your patch makes writepipe_exists non-inheritable. This
means that if you pass a pipe to a windows process, which in turn
passes it to another process, the writepipe_exists will be gone, and
cygwin will think the pipe is closed, AFAICT. So something like:
bash$ ls | cmd /c more
will not work any more. I think... I can't check this, because I don't
have access to old versions of windows where writepipe_exists is
actually used.

Lev



More information about the Cygwin-patches mailing list