aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-12 21:11:37 +0100
committerGitHub <noreply@github.com>2022-03-12 21:11:37 +0100
commit36ca585d2f6b048c518edb9a3003cb7f0ec826ab (patch)
tree1b63176d66c1e09a030499971591cf20c172c390 /src/nvim/msgpack_rpc
parentab456bc304965d83585cd248284cb36c96927457 (diff)
parenta4400bf8cda8ace4c4aab67bc73a1820478f46f1 (diff)
downloadrneovim-36ca585d2f6b048c518edb9a3003cb7f0ec826ab.tar.gz
rneovim-36ca585d2f6b048c518edb9a3003cb7f0ec826ab.tar.bz2
rneovim-36ca585d2f6b048c518edb9a3003cb7f0ec826ab.zip
Merge pull request #17691 from bfredl/serverconnect
feat(ui): connect to remote ui (beginning of ui client)
Diffstat (limited to 'src/nvim/msgpack_rpc')
-rw-r--r--src/nvim/msgpack_rpc/channel.c5
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);
}