Fixed crash in Utility::Daemonize().

Fixes #3194
This commit is contained in:
Gunnar Beutner 2012-09-27 08:21:07 +02:00
parent 5157853af9
commit 74a3bca0f6
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void Utility::Daemonize(void) {
throw_exception(PosixException("fork() failed", errno));
if (pid)
exit(0);
_exit(0);
fd = open("/dev/null", O_RDWR);