assert(kill(pid, SIGQUIT) == 0);
while (waitpid(pid, &status, 0) == -1 &&
- errno == -EINTR)
+ errno == EINTR)
;
helper_process_count--;
}
assert(kill(proc->pid,
proc->use_SIGKILL ? SIGKILL : SIGQUIT) == 0);
while (waitpid(proc->pid, &status, 0) == -1 &&
- errno == -EINTR)
+ errno == EINTR)
;
igt_assert(WIFSIGNALED(status) &&
WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT));
assert(kill(test_children[nc], SIGQUIT) == 0);
while (waitpid(test_children[nc], &status, 0) == -1 &&
- errno == -EINTR)
+ errno == EINTR)
;
}
for (int nc = 0; nc < num_test_children; nc++) {
int status = -1;
while (waitpid(test_children[nc], &status, 0) == -1 &&
- errno == -EINTR)
+ errno == EINTR)
;
if (status != 0) {