]> granicus.if.org Git - icinga2/commitdiff
Fixed crash in Utility::Daemonize().
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Sep 2012 06:21:07 +0000 (08:21 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Sep 2012 06:21:07 +0000 (08:21 +0200)
Fixes #3194

lib/base/utility.cpp

index f3fe5fbf17aeb410c80a4add357b2014711dbe7d..e388739b654361ec75048ef5cd46656478052460 100644 (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);