blob: 6cab88f6d331187a19838ce8595809d59881f929 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Function to convert a running process into a "proper" daemon.
*/
#ifndef _DAEMON_H
#define _DAEMON_H
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*
* The argument is whether to ignore the death of child processes. The function
* return non-zero if all was OK, else zero if there was a problem.
*/
extern int daemon_start(int);
#ifdef __cplusplus
}
#endif
#endif
|