version 1.1, 2012/02/21 23:16:02
|
version 1.1.1.2, 2013/07/22 00:32:35
|
Line 1
|
Line 1
|
/* $Id$ */ |
/* $Id$ */ |
/* MiniUPnP project |
/* MiniUPnP project |
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ |
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ |
* (c) 2006 Thomas Bernard | * (c) 2006 Thomas Bernard |
* This software is subject to the conditions detailed |
* This software is subject to the conditions detailed |
* in the LICENCE file provided within the distribution */ |
* in the LICENCE file provided within the distribution */ |
|
|
#ifndef __DAEMONIZE_H__ | #ifndef DAEMONIZE_H_INCLUDED |
#define __DAEMONIZE_H__ | #define DAEMONIZE_H_INCLUDED |
|
|
#include "config.h" |
#include "config.h" |
|
|
#ifndef USE_DAEMON |
#ifndef USE_DAEMON |
/* daemonize() |
/* daemonize() |
* "fork" to background, detach from terminal, etc... | * "fork" to background, detach from terminal, etc... |
* returns: pid of the daemon, exits upon failure */ |
* returns: pid of the daemon, exits upon failure */ |
int |
int |
daemonize(void); |
daemonize(void); |