Fixed forking bug
This commit is contained in:
parent
eef9303e61
commit
67feb20741
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Reference in a new issue