daemonitor/src
Laurence Withers 639944b905 Simplify daemon and always close file descriptors
Use daemon(3) to daemonise rather than writing our own code. Since we
use the mode of daemon(3) which closes the standard 3 file descriptors,
if the user requests logging to one of those we dup(2) the original
first. We must also take care to always close any newly-opened file
descriptors before execve(2) of the child.
2012-10-02 19:58:05 +00:00
..
daemonitor Simplify daemon and always close file descriptors 2012-10-02 19:58:05 +00:00