aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index f9a60600..00592c99 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -111,9 +111,9 @@ static int lc_daemonize(lua_State *L) {
}
/* Make sure accidental use of FDs 0, 1, 2 don't cause weirdness */
- stdin = freopen("/dev/null", "r", stdin);
- stdout = freopen("/dev/null", "w", stdout);
- stderr = freopen("/dev/null", "w", stderr);
+ freopen("/dev/null", "r", stdin);
+ freopen("/dev/null", "w", stdout);
+ freopen("/dev/null", "w", stderr);
/* Final fork, use it wisely */
if(fork()) {