Pause at main first before adding PIDs to zombie list on linux

This commit is contained in:
baldurk
2021-03-19 17:23:57 +00:00
parent 08d9cf26b5
commit 01f86e7c3a
+3 -3
View File
@@ -591,6 +591,9 @@ static pid_t RunProcess(rdcstr appName, rdcstr workDir, const rdcstr &cmdLine, c
}
else
{
if(pauseAtMain)
StopChildAtMain(childPid);
if(!stdoutPipe)
{
// remember this PID so we can wait on it later
@@ -608,9 +611,6 @@ static pid_t RunProcess(rdcstr appName, rdcstr workDir, const rdcstr &cmdLine, c
children.append(node);
}
if(pauseAtMain)
StopChildAtMain(childPid);
}
}