Go to the source code of this file.
Functions | |
void | daemonize () |
Transform a program into a daemon. | |
int | kill_daemon () |
Kill a daemon process. | |
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. References log(), redirect_stdfd(), signal(), and STRERROR. |
|
Definition at line 177 of file daemonize.c. References is_process_running(), myprocess::pidfile, myrun::pidfile, and Run. Referenced by control(), control_group(), and kill_daemon(). |
|
Kill a daemon process.
Definition at line 145 of file daemonize.c. References error(), exist_daemon(), prog, and STRERROR. |