aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 27449e35..ead23641 100644
--- a/daemon.c
+++ b/daemon.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/file.h>
#include <signal.h>
#include <fcntl.h>
@@ -20,6 +21,10 @@
# include <unistd.h>
#endif
+#if defined(STDC_HEADERS)
+#include <stdlib.h>
+#endif
+
#if defined(QNX)
# include <unix.h>
#endif
@@ -174,6 +179,8 @@ nottyDetach:
#if defined(SIGPWR)
signal(SIGPWR, sigchld_handler);
#endif
+
+ return(0);
}
/* daemon.c ends here */