Skip to content

Commit

Permalink
utils: fix wait status
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed May 12, 2019
1 parent e73a8e8 commit 1069024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1069024

Please sign in to comment.