mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 23:58:48 -05:00
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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user