diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-03-12 21:11:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-12 21:11:37 +0100 |
| commit | 36ca585d2f6b048c518edb9a3003cb7f0ec826ab (patch) | |
| tree | 1b63176d66c1e09a030499971591cf20c172c390 /src/nvim/msgpack_rpc | |
| parent | ab456bc304965d83585cd248284cb36c96927457 (diff) | |
| parent | a4400bf8cda8ace4c4aab67bc73a1820478f46f1 (diff) | |
| download | rneovim-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.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); } |