2005-08-16 02:35:09 +08:00
|
|
|
/* $Id: daemon.h,v 1.4 2005-08-15 18:35:09 rjkaes Exp $
|
2002-05-23 12:39:32 +08:00
|
|
|
*
|
|
|
|
* See 'daemon.c' for a detailed description.
|
|
|
|
*
|
2005-07-13 01:39:44 +08:00
|
|
|
* Copyright (C) 2002 Robert James Kaes (rjkaes@users.sourceforge.net)
|
2002-05-23 12:39:32 +08:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2, or (at your option) any
|
|
|
|
* later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TINYPROXY_DAEMON_H
|
|
|
|
#define TINYPROXY_DAEMON_H
|
|
|
|
|
2005-08-16 02:35:09 +08:00
|
|
|
typedef void signal_func (int);
|
2002-05-23 12:39:32 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Pass a singal integer and a function to handle the signal.
|
|
|
|
*/
|
2005-08-16 02:35:09 +08:00
|
|
|
extern signal_func *set_signal_handler(int signo, signal_func *func);
|
2002-05-23 12:39:32 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Make a program a daemon process
|
|
|
|
*/
|
|
|
|
extern void makedaemon(void);
|
|
|
|
|
|
|
|
#endif
|