Fixed forking bug

This commit is contained in:
Thulinma 2017-03-17 14:07:41 +01:00
parent eef9303e61
commit 67feb20741

View file

@ -271,6 +271,8 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
} }
if (pid == 0){ if (pid == 0){
Socket::Connection io(0, 1);
io.close();
DEBUG_MSG(DLVL_DONTEVEN, "execvp"); DEBUG_MSG(DLVL_DONTEVEN, "execvp");
execvp(argv[0], argv); execvp(argv[0], argv);
FAIL_MSG("Starting process %s for stream %s failed: %s", argv[0], streamname.c_str(), strerror(errno)); FAIL_MSG("Starting process %s for stream %s failed: %s", argv[0], streamname.c_str(), strerror(errno));