mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
channels: refactor jobwait
This commit is contained in:
@@ -639,12 +639,12 @@ static void channel_process_exit_cb(Process *proc, int status, void *data)
|
||||
terminal_close(chan->term, msg);
|
||||
}
|
||||
|
||||
if (chan->status_ptr) {
|
||||
*chan->status_ptr = status;
|
||||
// if status is -1 the process did not really exit,
|
||||
// we just closed the handle onto a detached process
|
||||
if (status >= 0) {
|
||||
process_channel_event(chan, &chan->on_exit, "exit", NULL, 0, status);
|
||||
}
|
||||
|
||||
process_channel_event(chan, &chan->on_exit, "exit", NULL, 0, status);
|
||||
|
||||
channel_decref(chan);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user