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
..
2016-11-23 21:51:11 +01:00
2013-07-30 11:52:58 +02:00
2010-10-28 18:57:19 +02:00
2013-07-30 11:52:58 +02:00
2010-10-29 11:46:52 +02:00