This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.0 CVS file append & NULL overlapped hEvent


Brian Ford <Brian.Ford <at> FlightSafety.com> writes:

> $ date > outfile
> 
> $ cat outfile
> Mon Jul 23 11:30:14 CDT 2007
> 
> $ java Test >> outfile 2>&1
> 
> $ cat outfile
> message1 to stdout
> message1 to stderr
> message2 to stderr
> message2 to stout
> 
> Oops, what happened to the date?

Hmm, sounds like Corinna's patch to set_file_pointers_for_exec: 
http://cygwin.com/ml/cygwin-cvs/2007-q2/msg00026.html

obeys POSIX but interferes with Windows.  It looks like when fd has O_APPEND 
set, that function will need to make a decision of whether the child being 
execed is non-cygwin, in which case it should seek to the end for the benefit 
of the child app.

-- 
Eric Blake



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]