Listening sockets now closed when forking child processes, preventing lock of ports when children aren't killed.

This commit is contained in:
Thulinma 2016-04-20 15:00:09 +02:00
parent 61b66e349e
commit fd123c8c1f
3 changed files with 11 additions and 0 deletions

View file

@ -32,6 +32,7 @@ namespace Util {
static int Count();
static bool isActive(pid_t name);
static bool isRunning(pid_t pid);
static std::set<int> socketList; ///< Holds sockets that should be closed before forking
};
}