Unix Programming - daemon process and background process

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2007 > daemon process and background process





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author daemon process and background process
J de Boyne Pollard

2007-09-27, 1: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>.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com