summaryrefslogtreecommitdiff
path: root/src/daemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon.h')
-rw-r--r--src/daemon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon.h b/src/daemon.h
index 1b8e7d6..5723e04 100644
--- a/src/daemon.h
+++ b/src/daemon.h
@@ -40,6 +40,8 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <errno.h>
+#include <string.h>
struct priv_info_struct {
struct passwd* pw_;
@@ -119,6 +121,7 @@ int do_chroot(const char* chrootdir)
log_printf(ERROR, "can't change to /: %s", strerror(errno));
return -1;
}
+ return 0;
}
void daemonize()