summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-01-24 01:49:16 +0000
committerChristian Pointner <equinox@anytun.org>2010-01-24 01:49:16 +0000
commit3b60fdcb66c016dd6e08ae1e8e9c8a6cefab94f5 (patch)
treef527c2d60c3d45de0294c22842deeb0dbdcc4fd9
parentfixed init script for differend Config dirs and multiconnection with no defau... (diff)
added setgpid at daemonize
-rw-r--r--src/daemon.hpp2
1 files changed, 2 insertions, 0 deletions
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