diff options
author | Christian Pointner <equinox@anytun.org> | 2010-01-24 01:49:16 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-01-24 01:49:16 +0000 |
commit | 3b60fdcb66c016dd6e08ae1e8e9c8a6cefab94f5 (patch) | |
tree | f527c2d60c3d45de0294c22842deeb0dbdcc4fd9 | |
parent | fixed init script for differend Config dirs and multiconnection with no defau... (diff) |
added setgpid at daemonize
-rw-r--r-- | src/daemon.hpp | 2 |
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 |