[Pkg-gnutls-maint] Bug#412408: Is invoking exit(2) in a library the right thing to do?

Marco d'Itri md at Linux.IT
Mon Nov 5 15:00:22 UTC 2007


On Nov 05, Werner Koch <wk at gnupg.org> wrote:

> > I still do not consider calling exit(2) in a library acceptable under
> > any condition.
> So you want abort () instead?  I consider this a bad option in this case
> because exit handlers would not be run.
I the function to fail with something like an error code.

> Given the reluctance of many programmers to properly check error codes
> and act accordingly, there is no choice in critical situation than to
> terminate the process.
I still disagree.

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-gnutls-maint/attachments/20071105/c9ee74ed/attachment-0001.pgp 


More information about the Pkg-gnutls-maint mailing list