Subject: Re: Possible changes to POSIX abort()
To: None <cgd@broadcom.com>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-userlevel
Date: 07/12/2002 18:40:42
cgd@broadcom.com writes:

> If the standardized definition of abort() changes in that way, I think
> we should still make the attempt to fclose() (or perform similar
> operations, e.g. flushing, before closing).

The argument against this is that in situations where you need to
abort(), you have detected an inconsistency and need to bail
out immediately and core dump, without touching any state.

Having detected an inconcistency, there's no reason to believe that
*any* of your data structures, including stdio streams, aren't also
corrupt, so trying to flush streams or do other recovery work will
only hurt you.

        - Nathan