40 bool rc = Process::cd(
"/" , Process::NoThrow() ) ; G_IGNORE_VARIABLE(rc) ;
46 void G::Daemon::setsid()
48 pid_t rc = ::setsid() ; G_IGNORE_VARIABLE(rc) ;
void check()
Throws an exception if the path is not absolute.
static std::pair< bool, pid_t > fork()
A utility function that forks the calling process and returns twice; once in the parent and once in t...
static void detach()
Detaches from the parent environment.
A class for creating pid files.