Correctly interrogate child process status

This commit is contained in:
Nik Bougalis
2016-01-20 15:12:26 -08:00
committed by Edward Hennis
parent 27673c1c3f
commit 08e518af73

View File

@@ -78,7 +78,7 @@ bool checkChild(pid_t pid, int options)
if (waitpid (pChild, &i, options) == -1)
return false;
return kill (pChild, options) == 0;
return kill (pChild, 0) == 0;
}
std::string DoSustain ()