On 10/28/07, Eli Zaretskii <[EMAIL PROTECTED]> wrote: > > 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 >
Thank you! It works well with O_NOINHERIT. I recall I used to have it but dropped for some reasons :-/ > Btw, are you sure that using the default I/O mode in the pipe is a > good idea? Wouldn't O_BINARY be better? Yes. I set _CRT_fmode to _O_BINARY, so _O_BINARY should be default for all operations? (It's in ash source, not in the example sources) > HTH > -- Duy _______________________________________________ Make-w32 mailing list Make-w32@gnu.org http://lists.gnu.org/mailman/listinfo/make-w32