Close std{in,out,err} when daemonizing 0.4.2

Fri, 22 May 2009 14:48:34 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 22 May 2009 14:48:34 +0100
changeset 1195
6b91a2b39680
parent 1194
343f5bc5c7a7
child 1196
5b6e9ee649e0

Close std{in,out,err} when daemonizing

util-src/pposix.c file | annotate | diff | comparison | revisions
--- 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);

mercurial