aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-22 14:48:34 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-22 14:48:34 +0100
commitb0c602ba7480a098cd454d8385d2821b4eaf1e70 (patch)
treeb2395e697f21eb9fed2658393d28c219e69e4c49 /util-src
parentd9adecbf42d5916deab023fab438e3d5f78ed6fb (diff)
downloadprosody-b0c602ba7480a098cd454d8385d2821b4eaf1e70.tar.gz
prosody-b0c602ba7480a098cd454d8385d2821b4eaf1e70.zip
Close std{in,out,err} when daemonizingvault/0.4.20.4.2
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 7d428c85..d26639b2 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -72,10 +72,10 @@ static int lc_daemonize(lua_State *L)
}
/* Close stdin, stdout, stderr */
-/* close(0);
+ close(0);
close(1);
close(2);
-*/
+
/* Final fork, use it wisely */
if(fork())
exit(0);