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
LUNCHBOX_API std::ostream & sysError(std::ostream &os)
Print a textual description of the current system error.
LUNCHBOX_API bool exit()
De-initialize the Lunchbox base classes.
bool daemonize()
Turn the calling process into a daemon.