Defer reading from control client until the command line command has

completed.
This commit is contained in:
nicm
2022-07-06 08:31:59 +00:00
parent dd602eaa61
commit 9e03df5500
3 changed files with 12 additions and 2 deletions

View File

@ -2791,8 +2791,11 @@ server_client_command_done(struct cmdq_item *item, __unused void *data)
if (~c->flags & CLIENT_ATTACHED)
c->flags |= CLIENT_EXIT;
else if (~c->flags & CLIENT_EXIT)
else if (~c->flags & CLIENT_EXIT) {
if (c->flags & CLIENT_CONTROL)
control_ready(c);
tty_send_requests(&c->tty);
}
return (CMD_RETURN_NORMAL);
}