Fri, 22 May 2009 14:48:34 +0100
Close std{in,out,err} when daemonizing
--- a/util-src/pposix.c Fri May 22 13:37:11 2009 +0100 +++ b/util-src/pposix.c Fri May 22 14:48:34 2009 +0100 @@ -72,10 +72,10 @@ } /* Close stdin, stdout, stderr */ -/* close(0); + close(0); close(1); close(2); -*/ + /* Final fork, use it wisely */ if(fork()) exit(0);