18 #ifndef LUNCHBOX_DAEMON_H
19 #define LUNCHBOX_DAEMON_H
21 #include <lunchbox/debug.h>
42 LBABORT(
"Not implemented" );
45 const pid_t pid = fork();
55 const pid_t sid = setsid();
63 ::close( STDIN_FILENO );
64 ::close( STDOUT_FILENO );
65 ::close( STDERR_FILENO );
71 #endif //LUNCHBOX_DAEMON_H
bool exit()
De-initialize the Lunchbox base classes.
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.