busybox/console-tools
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
..
chvt.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
clear.c new NOFORKs: clear, nproc, tty, uname, arch, unlink, which 2017-08-03 03:29:32 +02:00
Config.src Convert all console-tools/* applets to "new style" applet definitions 2016-11-23 10:39:27 +01:00
deallocvt.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
dumpkmap.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
fgconsole.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
kbd_mode.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
Kbuild.src Convert all console-tools/* applets to "new style" applet definitions 2016-11-23 10:39:27 +01:00
loadfont.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
loadkmap.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
openvt.c libbb: use _exit, not exit, in bb_daemonize_or_rexec() 2017-08-04 23:04:17 +02:00
reset.c make 17 state-changing execing applets (ex: "nice PROG ARGS") noexec 2017-08-04 19:55:01 +02:00
resize.c new NOFORKs: pwdx,kill[all5],ttysize,realpath,readlink NOEXECs: date,resize 2017-08-03 19:03:32 +02:00
setconsole.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
setkeycodes.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
setlogcons.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
showkey.c config: deindent all help texts 2017-07-21 09:50:55 +02:00