X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=daemon.c;h=24bbfe5cdaaa22b03924fd4aba0cf379a1de22e1;hp=91a6ff26eebb9e6e070be6066d6a9e446c310c14;hb=ce9d8dbb002447f4a7de548a1e3fe3ec5ead73b6;hpb=6c76799c7334a12926dc1cf0c32670423cbc954f diff --git a/daemon.c b/daemon.c index 91a6ff2..24bbfe5 100644 --- a/daemon.c +++ b/daemon.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2010 Andre Noll + * Copyright (C) 1997-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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)