mirror of
https://github.com/tmux/tmux.git
synced 2025-04-27 07:28:49 +00:00
MSG_EXIT can now have a return code in the message, so check for that
size as well. Stops the client fatal()ing on exit.
This commit is contained in:
parent
e3be9b1951
commit
5f5104e782
3
client.c
3
client.c
@ -297,7 +297,8 @@ client_dispatch(void)
|
|||||||
client_exitmsg = "detached";
|
client_exitmsg = "detached";
|
||||||
break;
|
break;
|
||||||
case MSG_EXIT:
|
case MSG_EXIT:
|
||||||
if (datalen != 0)
|
if (datalen != 0 &&
|
||||||
|
datalen != sizeof (struct msg_exit_data))
|
||||||
fatalx("bad MSG_EXIT size");
|
fatalx("bad MSG_EXIT size");
|
||||||
|
|
||||||
client_write_server(MSG_EXITING, NULL, 0);
|
client_write_server(MSG_EXITING, NULL, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user