From 633f43164d8245e388a71ab499aff4b3b2b79ceb Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 13 May 2018 18:24:57 +0200 Subject: make: git-receiver: fixed conversion from wait status to status code --- src/blogc-make/exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/blogc-make') diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c index aaae523..49c46a2 100644 --- a/src/blogc-make/exec.c +++ b/src/blogc-make/exec.c @@ -18,6 +18,7 @@ #include #include #include +#include "../common/compat.h" #include "../common/error.h" #include "../common/file.h" #include "../common/utils.h" @@ -202,7 +203,7 @@ bm_exec_command(const char *cmd, const char *input, char **output, int status; waitpid(pid, &status, 0); - return WEXITSTATUS(status); + return bc_compat_status_code(status); } @@ -402,7 +403,7 @@ bm_exec_blogc_runserver(bm_ctx_t *ctx, const char *host, const char *port, // we don't need pipes to run blogc-runserver, because it is "interactive" int status = system(cmd->str); - int rv = WEXITSTATUS(status); + int rv = bc_compat_status_code(status); bc_string_free(cmd, true); if (rv != 0 && rv != 130) { -- cgit v1.2.3-18-g5258