mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Pause at main first before adding PIDs to zombie list on linux
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user