libdaemon 0.14
dsignal.h
Go to the documentation of this file.
1#ifndef foodaemonsignalhfoo
2#define foodaemonsignalhfoo
3
4/***
5 This file is part of libdaemon.
6
7 Copyright 2003-2008 Lennart Poettering
8
9 libdaemon is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as
11 published by the Free Software Foundation, either version 2.1 of the
12 License, or (at your option) any later version.
13
14 libdaemon is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with libdaemon. If not, see
21 <http://www.gnu.org/licenses/>.
22***/
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
45int daemon_signal_init(int s, ...);
46
52
56
63
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif
int daemon_signal_install(int s)
Install a signal handler for the specified signal.
void daemon_signal_done(void)
Free resources of signal handling, should be called before daemon exit.
int daemon_signal_next(void)
Return the next signal received.
int daemon_signal_fd(void)
Return the file descriptor the daemon should select() on for reading.
int daemon_signal_init(int s,...)
Installs signal handlers for the specified signals.