bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in exit()?


From: Michael Kerrisk
Subject: Bug in exit()?
Date: Tue, 24 Apr 2001 08:24:20 +0200

Hello,

I've tested the following with glibc 2.1.3 (Linux kernel 2.2.14, SuSE6.4), 
but looking at the sources of glibc 2.2.3pre1, things don't look the same.

Ths is rather a "philosophical" bug report.  The exit() function does not 
appear to close stdio streams, although SUSv3 and Austin do specifythis.  
I discovered this while checking out some behaviours of vfork() - in a 
vforked child, I did an exit(), and found that the standard I/O streams 
*weren't* closed in the parent process when it resumed.  

I assume there are reasons things are done this way.  Are there plans to 
change this behaviour?

Thanks

Michael

__________________________________________
Michael Kerrisk
mailto: address@hidden

"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."

                             T S Eliot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]