|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Implementation of daemonization functionality. More...
#include <unistd.h>#include <fcntl.h>#include <sys/stat.h>#include <sys/types.h>#include <string.h>#include <ah-signal.H>#include <ah-errors.H>#include <ahDaemonize.H>Go to the source code of this file.
Functions | |
| void | daemonize (const char *program_name, int facility) |
| Converts the calling process into a Unix daemon. | |
Implementation of daemonization functionality.
Definition in file ahDaemonize.C.
| void daemonize | ( | const char * | program_name, |
| int | facility = LOG_DAEMON |
||
| ) |
Converts the calling process into a Unix daemon.
| program_name | Name of the program (for syslog identification) |
| facility | The syslog facility to use (default: LOG_DAEMON) |
| std::runtime_error | if daemonization fails |
| std::invalid_argument | if program_name is null or empty |
Definition at line 78 of file ahDaemonize.C.
References ah_invalid_argument_if, ah_runtime_error_if, and Aleph::daemonized.