X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: 1.7.0 CVS file append & NULL overlapped hEvent Date: Mon, 23 Jul 2007 17:04:25 +0000 (UTC) Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Brian Ford 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/