Fix use of freopen

This commit is contained in:
Michael Spang 2009-11-02 15:41:29 -05:00
parent db6fb3aeaf
commit e99a863c20
1 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ static void setup_daemon(void) {
setup_pidfile();
freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr);
stdin = freopen("/dev/null", "r", stdin);
stdout = freopen("/dev/null", "w", stdout);
stderr = freopen("/dev/null", "w", stderr);
}
}