summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index f97a9ea..71531e3 100644
--- a/main.c
+++ b/main.c
@@ -14,6 +14,7 @@
#include <sys/wait.h>
#include <sys/types.h>
+#include <sys/stat.h>
#include <unistd.h>
#include <getopt.h>
@@ -67,6 +68,7 @@ int main(int argc, char **argv)
return usage(argv[0]);
}
}
+ umask(0);
uloop_init();
procd_signal();
if (getpid() != 1)