From 3b60fdcb66c016dd6e08ae1e8e9c8a6cefab94f5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 24 Jan 2010 01:49:16 +0000 Subject: added setgpid at daemonize --- src/daemon.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/daemon.hpp b/src/daemon.hpp index d4002ec..850f57a 100644 --- a/src/daemon.hpp +++ b/src/daemon.hpp @@ -160,6 +160,8 @@ void daemonize() pidFile << pid; pidFile.close(); } + + setpgid(0, 0); } #endif #endif -- cgit v1.2.3