This commit is contained in:
Ben Harris 2016-11-06 21:28:50 -05:00
parent 21a5e7c1f9
commit 4487faa6fc
1 changed files with 1 additions and 3 deletions

View File

@ -159,11 +159,9 @@ int main(int argc, char **argv){
else {
int status;
pid_t w;
do {
w = waitpid(kidpid, &status, WUNTRACED | WCONTINUED);
if (w == -1) {
if (waitpid(kidpid, &status, WUNTRACED | WCONTINUED) == -1) {
perror("waitpid");
exit(1);
}