[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] Replacing exit() in library functions
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] Replacing exit() in library functions |
Date: |
Fri, 16 May 2014 22:46:01 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
As Georg von Zengen wrote:
> But a library should never call exit(), in my opinion.
Right. Think of the remaining instances of exit() as if they were
abort() -- an that's certainly viable even from within a library.
I have never seen any of them triggering during all the time (and none
of them is ever supposed to trigger on a sane operating system).
If we agree, I don't mind turning them into real abort()s either.
If someone is really adventurous in their application, they could
then still install a handler for SIGABRT. ;-)
--
cheers, Joerg .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)