|
Aria
2.8.0
|
Switch to running the program as a background daemon (i.e. More...
#include <ariaUtil.h>
Public Member Functions | |
| ArDaemonizer (int *argc, char **argv, bool closeStdErrAndStdOut) | |
| Constructor that sets up for daemonizing if arg checking. | |
| bool | daemonize (void) |
| Daemonizes if asked too by arguments. | |
| bool | forceDaemonize (void) |
| Daemonizes always. More... | |
| bool | isDaemonized (void) |
| Returns if we're daemonized or not. | |
| void | logOptions (void) const |
| Logs the options. | |
| ~ArDaemonizer () | |
| Destructor. | |
Protected Attributes | |
| bool | myCloseStdErrAndStdOut |
| bool | myIsDaemonized |
| ArConstFunctorC< ArDaemonizer > | myLogOptionsCB |
| ArArgumentParser | myParser |
Switch to running the program as a background daemon (i.e.
fork) (Only available in Linux)
Java and Python Wrappers: Not available in Java or Python wrapper libraries.
| bool ArDaemonizer::forceDaemonize | ( | void | ) |
Daemonizes always.
This returns true if daemonizing worked, returns false if it didn't...
the parent process exits here if forking worked.