X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Thu, 25 Nov 2004 13:03:18 +0200 (EET) From: Esa A E Peuha Sender: peuha AT sirppi DOT helsinki DOT fi To: djgpp-workers AT delorie DOT com Subject: Re: A fix for popen(). In-Reply-To: <41A5BE9F.15534.2346D29@localhost> Message-ID: References: <41A5BE9F DOT 15534 DOT 2346D29 AT localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 25 Nov 2004, Juan Manuel Guerrero wrote: > It seem that I have been sleeping as I made the patch. Please ignore it. > >From the explaination it should be clear that following lines must be removed: > > /* 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. I don't know what I was thinking when I wrote that, but I'll remove it. Similar issue exists with stdin in writing mode, so I'll fix that as well. -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/