diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-01-29 16:22:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-01-29 16:22:33 +0000 |
commit | 1beeabeaf4201c02f858df9866d30eebfd45446c (patch) | |
tree | feedf36e1743b8178ff9568106202d2c15ca5d09 /usr.bin/tmux/client.c | |
parent | b48b08d956273a50ed537eaa496734d85d181b21 (diff) |
Warn if a message type that is no longer used is received.
Diffstat (limited to 'usr.bin/tmux/client.c')
-rw-r--r-- | usr.bin/tmux/client.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c index b4dc75c45ee..f1a3336fb97 100644 --- a/usr.bin/tmux/client.c +++ b/usr.bin/tmux/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.136 2019/12/16 16:09:28 nicm Exp $ */ +/* $OpenBSD: client.c,v 1.137 2020/01/29 16:22:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -863,6 +863,12 @@ client_dispatch_wait(struct imsg *imsg) case MSG_WRITE_CLOSE: client_write_close(data, datalen); break; + case MSG_OLDSTDERR: + case MSG_OLDSTDIN: + case MSG_OLDSTDOUT: + fprintf(stderr, "server version is too old for client\n"); + proc_exit(client_proc); + break; } } |