09-27-07 06:34 PM
t> A daemon [is] a child of init and is a session leader [...]
Wrong. Neither of those is universally true of daemon processes. And
certainly neither is a _requirement_ for daemon processes. They do
_not_ determine what is and isn't a daemon. Daemons on Solaris that
are invoked by the SAF are neither children of process #1 nor session
leaders. Daemons on Linux and other Unices that are being controlled
by "supervise" (<URL:http://cr.yp.to/daemontools/supervise.html> ) or
by "runsv" (<URL:http://smarden.org./runit/runsv.8.html> ) are neither
children of process #1 nor session leaders.
Indeed, having process #1 as a parent process is usually indicative of
a badly written daemon. See <URL:http://homepages.tesco.net./
~J.deBoynePollard/FGA/unix-daemon-design-mistakes-to-avoid.html>.
[ Post a follow-up to this message ]
|