[PATCH] bb_daemonize: double-fork to ensure child doesn't get controlling tty

Laurent Bercot ska-dietlibc at skarnet.org
Tue Nov 8 10:44:55 UTC 2011


> bb_daemonize should double-fork so it isn't a session leader, and hence
> doesn't get a controlling tty on Linux if a tty is ever opened, similar to
> how libdaemon's daemon_fork or the big start-stop-daemon does it.

 Seriously. I would very much like to see *less* work done on obsolete
approaches like daemonization, auto-forking and other horrors such as
start-stop-daemon, and *more* work done towards adoption of real daemon
management frameworks such as s6, runit, daemontools, or even Upstart
or (God help us all) systemd.

-- 
 Laurent


More information about the busybox mailing list