www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/11/25/17:12:04

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Fri, 26 Nov 2004 00:08:39 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-ID: <01c4d33b$Blat.v2.2.2$77027f00@zahav.net.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <Pine.OSF.4.58.0411251228180.11858@sirppi.helsinki.fi> (message
from Esa A E Peuha on Thu, 25 Nov 2004 13:03:18 +0200 (EET))
Subject: Re: A fix for popen().
References: <41A5BE9F DOT 15534 DOT 2346D29 AT localhost> <Pine DOT OSF DOT 4 DOT 58 DOT 0411251228180 DOT 11858 AT sirppi DOT helsinki DOT fi>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Thu, 25 Nov 2004 13:03:18 +0200 (EET)
> From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
> 
> >      /* close file */
> >      fclose(l1->fp);
> 
> And since l1->fp is really the same FILE struct as stdout, it doesn't
> make much sense to call fclose on it anyway.

If you remove the fclose, please put an fflush there, in case there's
something buffered left.  (I know it shouldn't happen, but better be
safe than sorry.)

- Raw text -


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