Close file descriptors 0, 1 and 2 before the daemon loop.
commit412c3be4eff4b33a4599dfb3c8d0fa36b2ca135b
authorBen Kibbey <bjk@luxsci.net>
Sat, 20 Jan 2007 15:33:56 +0000 (20 10:33 -0500)
committerBen Kibbey <bjk@luxsci.net>
Sat, 20 Jan 2007 15:33:56 +0000 (20 10:33 -0500)
tree3888b123311ef39234fa3d17d010219f13f52887
parent7b59a0ef8c8f105185a4972cfc915dcb30c73ac8
Close file descriptors 0, 1 and 2 before the daemon loop.

Reset signals SIGINT, SIGCHLD and SIGHUP to their defaults in the
child process.

Fixed log_write() and writing to stdout/stderr when daemonized.

libxml and other noteworthy errors are written to the log.
src/commands.c
src/pwmd.c