X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=daemon.c;h=24bbfe5cdaaa22b03924fd4aba0cf379a1de22e1;hb=cd70d5ea935c3f445b9e3b934990b4ecd777baff;hp=b63e5ff57b408a79e62d44349cb9fd9d342b956e;hpb=8daf8f3836e745ba07f1aa01252279588574c95a;p=dss.git diff --git a/daemon.c b/daemon.c index b63e5ff..24bbfe5 100644 --- a/daemon.c +++ b/daemon.c @@ -48,7 +48,7 @@ void daemon_init(void) if (chdir("/") < 0) goto err; umask(0); - null = open("/dev/null", O_RDONLY); + null = open("/dev/null", O_RDWR); if (null < 0) goto err; if (dup2(null, STDIN_FILENO) < 0)