ignore child process when exec

release-v0.5.1
Jethro Grassie 6 years ago committed by wowario
parent abb4728cf7
commit ad6a732f24
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -35,6 +35,7 @@
#include <windows.h>
#else
#include <sys/wait.h>
#include <signal.h>
#endif
#include "misc_log_ex.h"
@ -114,7 +115,10 @@ int spawn(const char *filename, const std::vector<std::string>& args, bool wait)
if (pid > 0)
{
if (!wait)
{
signal(SIGCHLD, SIG_IGN);
return 0;
}
while (1)
{

Loading…
Cancel
Save