From 60368d2e0bd1a81c64b1a30b0819232866ccedb4 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 10 Apr 1999 00:44:09 +0200 Subject: Import ax25-lib 0.0.1 from tarball --- daemon.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 daemon.h (limited to 'daemon.h') diff --git a/daemon.h b/daemon.h new file mode 100644 index 0000000..6cab88f --- /dev/null +++ b/daemon.h @@ -0,0 +1,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 -- cgit v1.2.3