X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=daemon.c;h=0bc4b116e621726a0f1cb963436881c94fa4e6bc;hp=12b19275de9f6c561e021dad1b06ed9fae1ba4b9;hb=3ddbf5db98280cb09ef74726573b0b3f3b7e62d6;hpb=5446dfe5a4d54aa49dbc961956818d751e817326 diff --git a/daemon.c b/daemon.c index 12b19275..0bc4b116 100644 --- 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 #include #include /* getgrnam() */ #include +#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;