Denys Vlasenko b182e9ad60 libbb: use _exit, not exit, in bb_daemonize_or_rexec()
By the time we reach exit in parent, child already exited or execed.
We should not re-run libc cleanup code.

While at it, introduce bb_daemon_helper() and add a few comments.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-08-04 23:04:17 +02:00
..
2013-02-26 00:36:53 +01:00
2010-10-28 18:57:19 +02:00
2012-10-03 09:42:21 +02:00
2015-07-13 03:25:46 +02:00
2011-09-08 10:59:26 +02:00
2015-10-23 18:43:16 +02:00
2011-05-16 12:21:31 +02:00
2016-09-24 23:50:43 +02:00
2017-07-21 09:50:55 +02:00
2010-10-19 23:07:49 +02:00
2010-10-29 11:46:52 +02:00
2016-04-03 22:24:51 +02:00
2015-04-02 23:03:46 +02:00
2011-10-28 16:15:00 +02:00
2010-10-28 18:57:19 +02:00
2010-10-28 18:57:19 +02:00

Please see the LICENSE file for copyright information (GPLv2)

libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen
	<andersen@codepoet.org>