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