/* Someone forgot to fill up the array? */
assert(pid != 0);
- ret = kill(pid, SIGQUIT);
+ ret = kill(pid, SIGTERM);
assert(ret == 0);
while (waitpid(pid, &status, 0) == -1 &&
errno == EINTR)
assert(proc->running);
ret = kill(proc->pid,
- proc->use_SIGKILL ? SIGKILL : SIGQUIT);
+ proc->use_SIGKILL ? SIGKILL : SIGTERM);
assert(ret == 0);
+
while (waitpid(proc->pid, &status, 0) == -1 &&
errno == EINTR)
;
igt_assert(WIFSIGNALED(status) &&
- WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT));
+ WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGTERM));
proc->running = false;
for (int nc = 0; nc < num_test_children; nc++) {
int status = -1;
- ret = kill(test_children[nc], SIGQUIT);
+ ret = kill(test_children[nc], SIGTERM);
assert(ret == 0);
while (waitpid(test_children[nc], &status, 0) == -1 &&
/**
* igt_helper_process_t:
* @running: indicates whether the process is currently running
- * @use_SIGKILL: whether the helper should be terminated with SIGKILL or SIGQUIT
+ * @use_SIGKILL: whether the helper should be terminated with SIGKILL or SIGTERM
* @pid: pid of the helper if @running is true
* @id: internal id
*