feat(ui): connect to remote ui (only debug messages for now)

co-authored-by: hlpr98 <hlpr98@gmail.com>
This commit is contained in:
bfredl
2022-03-12 13:47:50 +01:00
parent 3a12737e6c
commit a4400bf8cd
6 changed files with 109 additions and 4 deletions

View File

@@ -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);
}