E-MailRelay
|
A static interface for daemonising the calling process. More...
#include <gdaemon.h>
Static Public Member Functions | |
static void | detach () |
Detaches from the parent environment. More... | |
static void | detach (const G::Path &pid_file) |
Does a detach() but the calling process waits a while for the pid file to be created before it exits. More... | |
A static interface for daemonising the calling process.
Daemonisation includes fork()ing, detaching from the controlling terminal, setting the process umask, etc. The windows implementation does nothing.
|
static |
Detaches from the parent environment.
This typically involves fork()ing, std::_Exit()ing the parent, and calling setsid() in the child. See also G::PidFile.
Definition at line 49 of file gdaemon_unix.cpp.
|
static |
Does a detach() but the calling process waits a while for the pid file to be created before it exits.
Definition at line 55 of file gdaemon_unix.cpp.