On 9/12/10 2:29 PM, Andy Koppe wrote:
> This does appear to work! Proof-of-concept code attached, along with a
> couple of tests. Running in mintty:

Awesome. Thanks for doing this work. I believe the Cygwin developers had
concerns about this change inadvertently breaking some applications.
Have you noticed any unusual behavior?

> Unfortunately it only seems to work for fdev's direct child process
> though. For example, when running cmd.exe through fdev and invoking
> isatty.exe from there, it's all zeroes from isatty() again.

Unfortunately, cmd.exe does not appear to use the C runtime IO library,
and it doesn't pass on inherited file descriptors --- except for the
standard handles via CreateProcess. It's a shame, too, because cmd
understands the syntax for manipulating the first ten file descriptors
in much the same way that a unix shell does.

I think it would work for other families of process though, and it's
still an improvement.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to