mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Wait for the child to finish up
This commit is contained in:
parent
3a624350d1
commit
70c317233f
@ -632,6 +632,14 @@ static int run_supervisor_tests(void)
|
|||||||
supervisortests = -1;
|
supervisortests = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait for the child to finish up
|
||||||
|
int wstatus;
|
||||||
|
usleep(100000);
|
||||||
|
while (waitpid(pid, &wstatus, WNOHANG) == 0) {
|
||||||
|
LOG_MSG("...Waiting for child to quit...\n");
|
||||||
|
usleep(100000);
|
||||||
|
}
|
||||||
|
|
||||||
if (supervisortests == 0)
|
if (supervisortests == 0)
|
||||||
LOG_MSG(":: Passed\n\n");
|
LOG_MSG(":: Passed\n\n");
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user