Try to avoid avconv zombies

This commit is contained in:
emeric
2014-08-20 01:00:00 +02:00
parent 89147fd955
commit 9bbff324ec
4 changed files with 50 additions and 30 deletions
+5
View File
@@ -23,6 +23,11 @@ ServiceManager::ServiceManager()
#endif // defined(SIGQUIT)
_signalSet.add(SIGHUP);
// Excplicitely ignore SIGCHLD to avoid zombies
// when avconv child processes are being killed
if (::signal(SIGCHLD, SIG_IGN) == SIG_ERR)
throw std::runtime_error("ServiceManager::ServiceManager, signal failed!");
}
ServiceManager::~ServiceManager()