bug-glibc
[Top][All Lists]
Advanced

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

Re: Bug in exit()?


From: Ulrich Drepper
Subject: Re: Bug in exit()?
Date: 24 Apr 2001 13:20:22 -0700
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Thelxepeia)

"Michael Kerrisk" <address@hidden> writes:

> 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.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



reply via email to

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