summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-14 08:01:27 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-14 08:01:27 -0800
commit750a6cacf49dd57a4b4891ffdbd63191180273da (patch)
tree43d467def1e540b1b9902d5ef54f1de578c5aaf9 /run-command.c
parent32a03dc165e2a65fdb20a4ddbe51eaa1e5f52c5b (diff)
parent709ca730f8e093005cc882bfb86c0ca9c83d345b (diff)
downloadgit-750a6cacf49dd57a4b4891ffdbd63191180273da.tar.gz
Merge branch 'jk/unify-exit-code-by-receiving-signal' into maint
* jk/unify-exit-code-by-receiving-signal: run-command: encode signal death as a positive integer
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index 24eaad5c66..04712191e8 100644
--- a/run-command.c
+++ b/run-command.c
@@ -249,7 +249,7 @@ static int wait_or_whine(pid_t pid, const char *argv0)
* mimics the exit code that a POSIX shell would report for
* a program that died from this signal.
*/
- code -= 128;
+ code += 128;
} else if (WIFEXITED(status)) {
code = WEXITSTATUS(status);
/*