diff --git a/daemon/daemonize.c b/daemon/daemonize.c index 5a68cbf..7d796a8 100644 --- a/daemon/daemonize.c +++ b/daemon/daemonize.c @@ -61,7 +61,7 @@ void daemonize(const char *name) } /* Now continue execution */ - umask(0); + umask(0022); if (setsid() < 0) { FATAL_ERRORNO("Failed to create process group\n"); }