From 106902420a1b26978d37da88f2aeb7be9ba41453 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 12 May 2019 11:35:54 +0800 Subject: [PATCH] utils: fix wait status --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.4