On Jan 27, 2008 1:34 AM, Johannes Sixt <[EMAIL PROTECTED]> wrote:
>
> On Saturday 26 January 2008 14:41, Nguyen Thai Ngoc Duy wrote:
> > Hi,
> >
> > The new spawn implementation now hits me worse as it won't (can't?)
> > save file handle attributes such as O_APPEND.. This makes me think
> > about Windows console issue that led to the new spawn patch. Could we
> > just compile git with -mwindows and revert part of the patch? We don't
> > really use Windows console, only standard file handles.

This is bad. It seems Windows do not unconditionally inherit console.
A GUI app will have std{in,out} closed.

> BTW, there is a mechanism that passes the O_APPEND information on to the child
> process, only it is not implemented. It's not too complicated, but not
> trivial, either. Read more here:
>
> http://www.catch22.net/tuts/undoc01.asp
>
> in the section "Pass arbitrary data to a child process!" that explains how
> handle information is passed in lpReserved2. (For git it's sufficient to pass
> only information about the first 3 file handles.)

Seems like this is the only way. I'll take the route :)
-- 
Duy

Reply via email to