#include "before_system.h"
#include <signal.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include "gu.h"
Functions | |
void | gu_daemon (mode_t daemon_umask) |
become a daemon |
|
become a daemon This function is used to put the calling process into the background. It does this by forking, then parent half to exits. It does other things too, such as closing all open files and setting the session id. |