aboutsummaryrefslogtreecommitdiffstats
path: root/editor.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-11 18:34:32 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-11 18:34:32 -0800
commitedb6ad5b0aa7152dc230c0e75f14fb41b8302db4 (patch)
tree4171bb3c75d9fa06a9f053a276869c64ccf302c3 /editor.c
parentc566ea13fd25be8a7c20bdf3644d1ebe3f65b690 (diff)
parent709ca730f8e093005cc882bfb86c0ca9c83d345b (diff)
downloadgit-edb6ad5b0aa7152dc230c0e75f14fb41b8302db4.tar.gz
Merge branch 'jk/unify-exit-code-by-receiving-signal'
The internal logic had to deal with two representations of a death of a child process by a signal. * jk/unify-exit-code-by-receiving-signal: run-command: encode signal death as a positive integer
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor.c b/editor.c
index 065a7abf2f..27bdecdaf3 100644
--- a/editor.c
+++ b/editor.c
@@ -51,7 +51,7 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en
sigchain_push(SIGINT, SIG_IGN);
sigchain_push(SIGQUIT, SIG_IGN);
ret = finish_command(&p);
- sig = ret + 128;
+ sig = ret - 128;
sigchain_pop(SIGINT);
sigchain_pop(SIGQUIT);
if (sig == SIGINT || sig == SIGQUIT)