From 74a3bca0f692a66cccc62ac78eb592b515c975ca Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 27 Sep 2012 08:21:07 +0200 Subject: [PATCH] Fixed crash in Utility::Daemonize(). Fixes #3194 --- lib/base/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index f3fe5fbf1..e388739b6 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -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);