peapod  0.1.0
EAPOL Proxy Daemon
Functions
daemonize.h File Reference

Function prototypes for daemonize.c. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void daemonize (const char *pidfile)
 Daemonize the program. More...
 

Detailed Description

Function prototypes for daemonize.c.

Function Documentation

void daemonize ( const char *  pidfile)

Daemonize the program.

Attempts to do so in the manner described in daemon(7) - forks twice, with the parent writing the PID of the second child to a PID file before exiting. The daemon child also adds $PWD to its environment, in case any scripts it executes require it.

Parameters
pidfilePath to PID file
Note
Exits if unsuccessful