Ben Lentz wrote: > Hmmm... file descriptors for STDIN, STDOUT, and STDERR should be closed, > too... the setsid() detaches the controlling terminal but a terminal > still hangs at logout after starting the daemon. A quick-and-dirty patch > is attached, but there's probably a "better" way to do this. I have applied a similar patch. I have also moved the initialization before the daemonization so that the error messages that may occur are still printed ;) -- "Los honestos son inadaptados sociales" -- Les Luthiers