Diff

util-src/pposix.c @ 1195:6b91a2b39680 0.4.2

Close std{in,out,err} when daemonizing
author Matthew Wild <mwild1@gmail.com>
date Fri, 22 May 2009 14:48:34 +0100
parent 896:2c0b9e3c11c3
child 1565:f1eeb049a0a5
line wrap: on
line diff
--- 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);