delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/05/26/14:44:27

From: ian AT cygnus DOT com (Ian Lance Taylor)
Subject: Re: fflush and exec
26 May 1998 14:44:27 -0700 :
Message-ID: <199805262130.RAA29181.cygnus.cygwin32.developers@subrogation.cygnus.com>
References: <m0yeQU2-00114cC AT malasada DOT lava DOT net>
To: newsham AT lava DOT net
Cc: cygwin32-developers AT cygnus DOT com

   From: newsham AT lava DOT net (Tim Newsham)
   Date: Tue, 26 May 1998 10:38:06 -1000 (HST)

   While testing other things I ran across this.  Doing an exec doesn't
   necessarily flush the output stream.  This can be confusing.  Here's
   a test program to reproduce this (remove the ifdef lines to see proper
   output,  shouldn't be needed).

Most Unix systems have the same behaviour.  While we could have
cygwin32 flush the stdio files, I don't see any particular requirement
that this be done.  On Unix, execve is defined in terms of file
descriptors, not in terms of stdio files.

Ian

- Raw text -


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