libdaemon
0.14
Main Page
Files
Examples
File List
Globals
dfork.h
Go to the documentation of this file.
1
#ifndef foodaemonforkhfoo
2
#define foodaemonforkhfoo
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
#include <sys/types.h>
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
63
pid_t
daemon_fork
(
void
);
64
71
int
daemon_retval_init
(
void
);
72
80
void
daemon_retval_done
(
void
);
81
91
int
daemon_retval_wait
(
int
timeout);
92
100
int
daemon_retval_send
(
int
s);
101
106
#define DAEMON_CLOSE_ALL_AVAILABLE 1
107
112
int
daemon_close_all
(
int
except_fd, ...);
113
118
int
daemon_close_allv
(
const
int
except_fds[]);
119
124
#define DAEMON_UNBLOCK_SIGS_AVAILABLE 1
125
130
int
daemon_unblock_sigs
(
int
except, ...);
131
136
int
daemon_unblock_sigsv
(
const
int
except[]);
137
142
#define DAEMON_RESET_SIGS_AVAILABLE 1
143
148
int
daemon_reset_sigs
(
int
except, ...);
149
154
int
daemon_reset_sigsv
(
const
int
except[]);
155
156
#ifdef __cplusplus
157
}
158
#endif
159
160
#endif
libdaemon
dfork.h
Generated on Thu Oct 4 2012 18:28:23 for libdaemon by
1.8.1.2