|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functionality for daemonizing a process. More...
#include <syslog.h>#include <stdexcept>Go to the source code of this file.
Functions | |
| void | daemonize (const char *program_name, int facility=LOG_DAEMON) |
| Converts the calling process into a Unix daemon. | |
Functionality for daemonizing a process.
Definition in file ahDaemonize.H.
| 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.