Go to the source code of this file.
Functions | |
void | daemonize () |
Transform a program into a daemon. More... | |
int | kill_daemon () |
Kill a daemon process. More... | |
int | exist_daemon () |
Definition in file daemonize.c.
|
Transform a program into a daemon. Inspired by code from Stephen A. Rago's book, Unix System V Network Programming. Definition at line 70 of file daemonize.c. |
|
Definition at line 180 of file daemonize.c. References is_process_running(), myprocess::pidfile, myrun::pidfile, and Run. Referenced by dstart_process(), dstop_process(), and kill_daemon(). |
|
Kill a daemon process.
Definition at line 148 of file daemonize.c. References error(), exist_daemon(), prog, and STRERROR. |