Main Page | Data Structures | File List | Globals

libgu/daemon.c File Reference

become a daemon More...

#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


Detailed Description

become a daemon


Function Documentation

void gu_daemon mode_t  daemon_umask  ) 
 

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.


Generated on Fri Feb 20 15:17:52 2004 for PPR Libraries by doxygen 1.3.5