daemonitor/src/daemonitor
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
..
.params Add basic daemonitor build framework and logging infrastructure 2008-07-26 15:19:13 +00:00
000_TopSource.c Add run_program() implementation 2008-07-26 17:24:19 +00:00
100_io.c Add PID file support 2008-07-26 16:11:34 +00:00
200_log.c Simplify daemon and always close file descriptors 2012-10-02 19:58:05 +00:00
300_pid.c Clean up printing to PID file and logging of that 2008-07-26 17:30:35 +00:00
500_env.c Add ability to override environment variables for child process 2008-07-26 18:10:04 +00:00
600_run_program.c Simplify daemon and always close file descriptors 2012-10-02 19:58:05 +00:00
700_signal.c SIGTERM handler: use _exit(2), not exit(3) 2012-10-02 18:52:11 +00:00
800_checks.c Add respawn checking feature 2012-10-02 19:33:18 +00:00
999_main.c Simplify daemon and always close file descriptors 2012-10-02 19:58:05 +00:00
build.app Update build system 2012-10-02 09:54:56 +00:00
build.default Add basic daemonitor build framework and logging infrastructure 2008-07-26 15:19:13 +00:00
build.install Add basic daemonitor build framework and logging infrastructure 2008-07-26 15:19:13 +00:00
build.install-app Update build system 2012-10-02 09:54:56 +00:00
build.monolithic Update build system 2012-10-02 09:54:56 +00:00