18 #ifndef LUNCHBOX_DAEMON_H    19 #define LUNCHBOX_DAEMON_H    21 #include <lunchbox/debug.h>    41     LBABORT(
"Not implemented");
    44     const pid_t pid = 
fork();
    54     const pid_t sid = setsid(); 
    62     ::close(STDIN_FILENO);
    63     ::close(STDOUT_FILENO);
    64     ::close(STDERR_FILENO);
    70 #endif // LUNCHBOX_DAEMON_H bool exit()
De-initialize the Lunchbox base classes. 
 
bool fork(const std::string &command)
Execute the given command in a new process. 
 
std::ostream & sysError(std::ostream &os)
Print a textual description of the current system error. 
 
Abstraction layer and common utilities for multi-threaded programming. 
 
bool daemonize()
Turn the calling process into a daemon.