From: Andre Noll Date: Fri, 21 Aug 2009 19:30:23 +0000 (+0200) Subject: daemon: Don't set the umask to zero. X-Git-Tag: v0.3.5~13 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=bd55215eb1f1c8d041170743dcee5e069d5706b8 daemon: Don't set the umask to zero. Clearing umask creates more problems that it solves. --- diff --git a/daemon.c b/daemon.c index 12b19275..3bcb6e01 100644 --- a/daemon.c +++ b/daemon.c @@ -167,7 +167,6 @@ void daemonize(void) goto err; if (chdir("/") < 0) goto err; - umask(0); null = open("/dev/null", O_RDONLY); if (null < 0) goto err;