[gfortran] PR 20179
Janne Blomqvist
jblomqvi@cc.hut.fi
Tue May 24 07:02:00 GMT 2005
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
More information about the Fortran
mailing list