This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] PR 20179
- From: Janne Blomqvist <jblomqvi at cc dot hut dot fi>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 May 2005 10:01:56 +0300
- Subject: Re: [gfortran] PR 20179
- References: <4292C729.1030500@gmail.com>
On Tue, May 24, 2005 at 08:18:17AM +0200, FX Coudert wrote:
> Attached patch fixes PR 20179, about mixing C and Fortran I/O. In
> short: we don't want to close() stdout and stderr file descriptors
> when the library exits.
Uh, wouldn't the correct thing be a flush followed by close()?
fclose() does flush before closing, but AFAIK there is no such
guarantee for close().
Exiting without closing sounds a bit suspicious to me (or is it Ok for
std*?). Or maybe I'm just misunderstanding the whole issue..
--
Janne Blomqvist