[Pkg-gnutls-maint] Bug#412408: [wk@gnupg.org: Re: Is invoking
exit(2) in a library the right thing to do?]
Andreas Metzler
ametzler at downhill.at.eu.org
Mon Mar 5 19:32:48 CET 2007
----- Forwarded message from Werner Koch <wk at gnupg.org> -----
From: Werner Koch <wk at gnupg.org>
To: Andreas Metzler <ametzler at downhill.at.eu.org>
Cc: gcrypt-devel at gnupg.org
Date: Sun, 04 Mar 2007 21:57:49 +0100
Message-ID: <87hct0iv5e.fsf at wheatstone.g10code.de>
On Sat, 3 Mar 2007 11:10, ametzler at downhill.at.eu.org said:
> currently log_fatal() ends up invoking exit(2). Is this really the
> right thing to do? It does not give applications using libgcrypt any
Yes. It allows application to run an atexit handler. Libgcrypt even
allows to register a dedicated handler: gcry_set_fatalerror_handler.
In any case the process needs to terminate as their is a fatal error
and something is going really wrong. Allow a process to continue is
not a good idea because it allows bugs to lurk around for years
without fixing. Such a bug is an indicator that something more severe
might have gone wrong.
Shalom-Salam,
Werner
----- End forwarded message -----
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
More information about the Pkg-gnutls-maint
mailing list