diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-13 18:24:57 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-13 18:24:57 +0200 |
commit | 633f43164d8245e388a71ab499aff4b3b2b79ceb (patch) | |
tree | ea2c7d11dc5219002e0492a7e60a619d2865f9cd /src/blogc-make | |
parent | 097fc9bdb386705a63a8021d5467266a70e22a6e (diff) | |
download | blogc-633f43164d8245e388a71ab499aff4b3b2b79ceb.tar.gz blogc-633f43164d8245e388a71ab499aff4b3b2b79ceb.tar.bz2 blogc-633f43164d8245e388a71ab499aff4b3b2b79ceb.zip |
make: git-receiver: fixed conversion from wait status to status code
Diffstat (limited to 'src/blogc-make')
-rw-r--r-- | src/blogc-make/exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <sys/wait.h> #include <errno.h> #include <libgen.h> +#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) { |