summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/client.c')
-rw-r--r--usr.bin/tmux/client.c8
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;
}
}