aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/daemon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/daemon.h b/src/daemon.h
index da83b85a8..f2ea58c5f 100644
--- a/src/daemon.h
+++ b/src/daemon.h
@@ -21,6 +21,12 @@
#include "cmdline.h"
+/**
+ * Close stdin (fd 0) and re-open it as /dev/null.
+ */
+void
+daemonize_close_stdin(void);
+
void
daemonize(Options *options);