aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/event/process.c')
-rw-r--r--src/nvim/event/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c
index e74e95669d..52a9394e88 100644
--- a/src/nvim/event/process.c
+++ b/src/nvim/event/process.c
@@ -404,6 +404,10 @@ static void on_process_exit(Process *proc)
ILOG("exited: pid=%d status=%d stoptime=%" PRIu64, proc->pid, proc->status,
proc->stopped_time);
+ if (TUI_process && !is_remote_client) {
+ // Set only in "builtin" TUI
+ server_process_exit_status = proc->status;
+ }
// Process has terminated, but there could still be data to be read from the
// OS. We are still in the libuv loop, so we cannot call code that polls for
// more data directly. Instead delay the reading after the libuv loop by