diff options
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 299651ee97..f4e836fa81 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -547,6 +547,11 @@ void rpc_close(Channel *channel) channel->rpc.closed = true; channel_decref(channel); + if (channel->id == ui_client_channel_id) { + // TODO(bfredl): handle this in ui_client, where os_exit() is safe + exit(0); + } + if (channel->streamtype == kChannelStreamStdio) { multiqueue_put(main_loop.fast_events, exit_event, 0); } |