[Tutor] Python Daemon

Remco Gerlich scarblac@pino.selwerd.nl
Mon, 12 Mar 2001 00:26:30 +0100


On Sun, Mar 11, 2001 at 11:20:36AM +0100, Pedro Diaz Jimenez wrote:
> In order to make a daemon, you've got to fork() and kill the father. Then 
> you have a child in the background

Then, to make it a well-behaved daemon, you make it chdir() to /, and set
its stdin, stdout and stderr to /dev/null. Without that, I wouldn't call it
a daemon.

What is the daemon supposed to do, btw? :)

-- 
Remco Gerlich