Revert "Redirect stdin/stderr/stdout to /dev/null in daemon mode"

Remove daemon support due to delayed popular vote (part 1)
master
sapier 2014-06-01 14:51:46 +02:00
parent c5f00c38da
commit 75ddf4d221
1 changed files with 2 additions and 4 deletions

View File

@ -635,7 +635,6 @@ void daemonize()
pidfile = 0;
}
pid_t pid = fork();
if (pid > 0) {
@ -649,9 +648,8 @@ void daemonize()
}
exit (0);
} else if (pid == 0) {
freopen("/dev/null","w",stdout);
freopen("/dev/null","w",stderr);
freopen("/dev/null","r",stdout);
fclose(stdout);
fclose(stderr);
return;
}