busybox/debianutils
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
..
Config.src debianutils/*: convert to new-style "one file" applets 2015-10-19 00:52:26 +02:00
Kbuild.src debianutils/*: convert to new-style "one file" applets 2015-10-19 00:52:26 +02:00
pipe_progress.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
run_parts.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
start_stop_daemon.c libbb: use _exit, not exit, in bb_daemonize_or_rexec() 2017-08-04 23:04:17 +02:00
which.c new NOFORKs: clear, nproc, tty, uname, arch, unlink, which 2017-08-03 03:29:32 +02:00