[pacman-dev]  remove exit() calls from libalpm
aurelien at archlinux.org
Tue Feb 7 14:05:21 EST 2006
> On Mon, Feb 06, 2006 at 11:18:08PM +0100, Aurelien Foret <aurelien at archlinux.org> wrote:
>>  remove exit() calls from libalpm
>> the library should never call exit() but always return an error code to
>> the frontend (for instance, drop MALLOC macro)
> hmm, is it really necessary to drop that macro?
> what about this patch?
I don't think it would fit: it drops all possibilities to take needed
actions to cleanup the environment (freeing locally allocated memory,
...) before leaving a function.
Anyway, it is only used 6 times in the whole library... not a big deal
to remove it.
More information about the pacman-dev