diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-22 14:48:34 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-22 14:48:34 +0100 |
commit | b0c602ba7480a098cd454d8385d2821b4eaf1e70 (patch) | |
tree | b2395e697f21eb9fed2658393d28c219e69e4c49 /util-src/pposix.c | |
parent | d9adecbf42d5916deab023fab438e3d5f78ed6fb (diff) | |
download | prosody-b0c602ba7480a098cd454d8385d2821b4eaf1e70.tar.gz prosody-b0c602ba7480a098cd454d8385d2821b4eaf1e70.zip |
Close std{in,out,err} when daemonizingvault/0.4.20.4.2
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r-- | util-src/pposix.c | 4 |
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); |