Is invoking exit(2) in a library the right thing to do?
Marco d'Itri
md at Linux.IT
Mon Nov 5 16:00:22 CET 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 : /pipermail/attachments/20071105/c9ee74ed/attachment.pgp
More information about the Gcrypt-devel
mailing list