aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-09 15:34:06 +0200
committerGitHub <noreply@github.com>2019-08-09 15:34:06 +0200
commit939d9053bdf2f56286640c581eb4e2ff5a856540 (patch)
tree8ba6e3bbda157caad29732b0b619566037db1644 /src/nvim/os/pty_process_unix.c
parentfa0c677a63079e5d27ff037ea8f1e23a71fe6680 (diff)
downloadrneovim-939d9053bdf2f56286640c581eb4e2ff5a856540.tar.gz
rneovim-939d9053bdf2f56286640c581eb4e2ff5a856540.tar.bz2
rneovim-939d9053bdf2f56286640c581eb4e2ff5a856540.zip
channels: reflect exit due to signals in exit status code (#10573)
Uses `128 + term_signal` in case of exit due to a signal. Fixes https://github.com/neovim/neovim/issues/10571.
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index 5fdf0e6181..f0bc13783c 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -288,7 +288,7 @@ static void chld_handler(uv_signal_t *handle, int signum)
if (WIFEXITED(stat)) {
proc->status = WEXITSTATUS(stat);
} else if (WIFSIGNALED(stat)) {
- proc->status = WTERMSIG(stat);
+ proc->status = 128 + WTERMSIG(stat);
}
proc->internal_exit_cb(proc);
}