delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/23/13:05:13

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT 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 DOT CYG DOT 4 DOT 58 DOT 0707231108470 DOT 5800 AT PC1163-8460-XP DOT flightsafety DOT com>
Mime-Version: 1.0
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019