]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - daemon.c
Merge branch 'master' into next
[paraslash.git] / daemon.c
index 12b19275de9f6c561e021dad1b06ed9fae1ba4b9..0bc4b116e621726a0f1cb963436881c94fa4e6bc 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -5,12 +5,14 @@
  */
 
 /** \file daemon.c Some helpers for programs that detach from the console. */
-#include "para.h"
-#include "daemon.h"
+
+#include <regex.h>
 #include <pwd.h>
 #include <sys/types.h> /* getgrnam() */
 #include <grp.h>
 
+#include "para.h"
+#include "daemon.h"
 #include "string.h"
 #include "color.h"
 
@@ -167,7 +169,6 @@ void daemonize(void)
                goto err;
        if (chdir("/") < 0)
                goto err;
-       umask(0);
        null = open("/dev/null", O_RDONLY);
        if (null < 0)
                goto err;