make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help on Windows pipe processing


From: Nguyen Thai Ngoc Duy
Subject: Re: Help on Windows pipe processing
Date: Sun, 28 Oct 2007 13:28:21 +0700

On 10/28/07, Eli Zaretskii <address@hidden> wrote:
> > Date: Sat, 27 Oct 2007 22:48:24 +0700
> > From: "Nguyen Thai Ngoc Duy" <address@hidden>
> >
> > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]