This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] PR 20179


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]