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" 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> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (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> 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 Precedence: bulk > Date: Thu, 25 Nov 2004 13:03:18 +0200 (EET) > From: Esa A E Peuha > > > /* 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.)