Re: Help on Windows pipe processing

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Date: Sat, 27 Oct 2007 22:48:24 +0700
> From: "Nguyen Thai Ngoc Duy" <[email protected]>
> 
> Did I make anything wrong?

You didn't use the O_NOINHERIT flag in the _pipe call, and I think you
should close the original descriptor _before_ you spawn the child, not
after.  See the examples at

  http://msdn2.microsoft.com/en-us/library/edze9h7e(VS.80).aspx

Btw, are you sure that using the default I/O mode in the pipe is a
good idea?  Wouldn't O_BINARY be better?

HTH
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.