summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-09 12:16:16 +0000
committernicm <nicm>2020-04-09 12:16:16 +0000
commit0e8710f507acda408e3daf1ad71b33997e126505 (patch)
treefb7bebae147ad68c44d335a2f3ff8612f2f33f87 /server-client.c
parentff135b34a41b388b9ac98e2f655cf487ace6aa43 (diff)
Wait until the initial command sequence is done before sending a device
attributes request and other bits that prompt a reply from the terminal. This means that stray relies are not left on the terminal if the command has attached and then immediately detached and tmux will not be around to receive them. Prompted by a problem report from espie@.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 70244620..5d39e492 100644
--- a/server-client.c
+++ b/server-client.c
@@ -1898,6 +1898,8 @@ 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_DETACHING)
+ tty_send_requests(&c->tty);
return (CMD_RETURN_NORMAL);
}