mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-06 13:24:28 +02:00
parent
5157853af9
commit
74a3bca0f6
@ -61,7 +61,7 @@ void Utility::Daemonize(void) {
|
|||||||
throw_exception(PosixException("fork() failed", errno));
|
throw_exception(PosixException("fork() failed", errno));
|
||||||
|
|
||||||
if (pid)
|
if (pid)
|
||||||
exit(0);
|
_exit(0);
|
||||||
|
|
||||||
fd = open("/dev/null", O_RDWR);
|
fd = open("/dev/null", O_RDWR);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user