mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue