mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-24 03:27:37 +00:00
Move MSG_IDENTIFY to the last sent by the client, this will be needed by
control clients and irrelevant for others.
This commit is contained in:
parent
d8805af66b
commit
bf9e7a1c68
1 changed files with 5 additions and 5 deletions
10
client.c
10
client.c
|
|
@ -250,11 +250,6 @@ client_send_identify(int flags)
|
|||
strlcpy(data.term, term, sizeof data.term) >= sizeof data.term)
|
||||
*data.term = '\0';
|
||||
|
||||
if ((fd = dup(STDIN_FILENO)) == -1)
|
||||
fatal("dup failed");
|
||||
imsg_compose(&client_ibuf,
|
||||
MSG_IDENTIFY, PROTOCOL_VERSION, -1, fd, &data, sizeof data);
|
||||
|
||||
if ((fd = dup(STDOUT_FILENO)) == -1)
|
||||
fatal("dup failed");
|
||||
imsg_compose(&client_ibuf,
|
||||
|
|
@ -264,6 +259,11 @@ client_send_identify(int flags)
|
|||
fatal("dup failed");
|
||||
imsg_compose(&client_ibuf,
|
||||
MSG_STDERR, PROTOCOL_VERSION, -1, fd, NULL, 0);
|
||||
|
||||
if ((fd = dup(STDIN_FILENO)) == -1)
|
||||
fatal("dup failed");
|
||||
imsg_compose(&client_ibuf,
|
||||
MSG_IDENTIFY, PROTOCOL_VERSION, -1, fd, &data, sizeof data);
|
||||
}
|
||||
|
||||
/* Forward entire environment to server. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue