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

Remove daemon support due to delayed popular vote (part 1)
This commit is contained in:
sapier 2014-06-01 14:51:46 +02:00
parent c5f00c38da
commit 75ddf4d221

@ -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;
}