diff --git a/src/utils.c b/src/utils.c index 680518c..1ab185a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -95,7 +95,7 @@ wait_proc(pid_t in, pid_t *out) { int status = -1; if (WIFEXITED(stat)) { status = WEXITSTATUS(stat); - } else if (WIFSIGNALED(status)) { + } else if (WIFSIGNALED(stat)) { status = WTERMSIG(stat); } return status;