bug-glibc
[Top][All Lists]
Advanced

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

Re: Bug in exit()?


From: Michael Kerrisk
Subject: Re: Bug in exit()?
Date: Wed, 25 Apr 2001 07:38:52 +0200

> > I see your idea, however the standard merely says that calling
> > anything other than exec/_exit is undefined, not that it is
> > disallowed.
> 
> Of course you can do this but don't be surprised if suddenly all your
> harddrives are reformatted.  This is perfectly valid.
> 
> > In any case my report is not about vfork() - that is rather the way
> > I discovered the problem with exit(): the standards explicitly say
> > that exit() should close stdio file streams.
> 
> It is impossible to detect this from a correct program and the form of the
> current implementation has very good reasons (security is one of them). 
> There will be no change since none is necessary.

Ulrich - good, thanks for the info.  I was primarily interested to know if 
this was expected glibc behaviour (and was going to remain unchanged), 
rather than expecting a change.  If you cared to expand on the security 
angle, I would be interested to know more.

Thanks

Michael
__________________________________________
Michael Kerrisk
mailto: address@hidden

"A man builds a house with four sides of rectangular
construction, each side having a southern exposure. A big
bear comes along. What colour is the bear?"




reply via email to

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