Fix use of freopen
This commit is contained in:
parent
db6fb3aeaf
commit
e99a863c20
|
@ -103,9 +103,9 @@ static void setup_daemon(void) {
|
||||||
|
|
||||||
setup_pidfile();
|
setup_pidfile();
|
||||||
|
|
||||||
freopen("/dev/null", "r", stdin);
|
stdin = freopen("/dev/null", "r", stdin);
|
||||||
freopen("/dev/null", "w", stdout);
|
stdout = freopen("/dev/null", "w", stdout);
|
||||||
freopen("/dev/null", "w", stderr);
|
stderr = freopen("/dev/null", "w", stderr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue