[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    =?utf-8?B?YXRleGl0KCkgcmVwbGFjZW1lbnQ=?=
From:       dronnikov () gmail ! com
Date:       2008-02-27 21:23:34
Message-ID: 47c5d4d6.0516300a.6386.ffffa2a1 () mx ! google ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Hello, List!

As you all know, many things would be simpler
if we had not "deprecated" usage of atexit().
E.g. clean exit for applets which set tty modes, and so on.

Let us look at xfunc_error_retval variable which determines
the applet exit code in case of failure of x*() functions.

It is declared as
int xfunc_error_retval = EXIT_FAILURE;

I propose to change slightly its meaning:

0. if it is less than 256 -- then still use it as exit code.
1. otherwise xfunc_die() should treat it as (*tricky_atexit)(void)
and "execute" it before calling exit().

Comments?

--
Vladimir



_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic