X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.net>
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:  <loom.20070723T185404-696@post.gmane.org>
References:  <Pine.CYG.4.58.0707231108470.5800@PC1163-8460-XP.flightsafety.com>
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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

