Ignore child processes so they don't stick around as defunct

This commit is contained in:
baldurk
2016-08-19 17:26:13 +02:00
parent 84baa6d752
commit 7af08c80ee
+3
View File
@@ -309,6 +309,9 @@ static pid_t RunProcess(const char *app, const char *workingDir, const char *cmd
}
}
// don't care about child processes, just ignore them
signal(SIGCHLD, SIG_IGN);
pid_t childPid = fork();
if(childPid == 0)
{