summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/channels.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2004-10-29 21:47:15 +0000
committerdjm <djm@openbsd.org>2004-10-29 21:47:15 +0000
commite896ad7b655ca22b7df9c4c1f1e3cbda5fb49247 (patch)
tree1f9d485af45e016deab5aee7d2b7592e99f1fd4b /usr.bin/ssh/channels.c
parentRemove unneeded files. ok beck@ (diff)
downloadwireguard-openbsd-e896ad7b655ca22b7df9c4c1f1e3cbda5fb49247.tar.xz
wireguard-openbsd-e896ad7b655ca22b7df9c4c1f1e3cbda5fb49247.zip
fix some window size change bugs for multiplexed connections: windows sizes
were not being updated if they had changed after ~^Z suspends and SIGWINCH was not being processed unless the first connection had requested a tty; ok markus
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r--usr.bin/ssh/channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index f875acabcef..da744e84bad 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.210 2004/08/23 11:48:47 djm Exp $");
+RCSID("$OpenBSD: channels.c,v 1.211 2004/10/29 21:47:15 djm Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -2565,7 +2565,7 @@ channel_send_window_changes(void)
struct winsize ws;
for (i = 0; i < channels_alloc; i++) {
- if (channels[i] == NULL ||
+ if (channels[i] == NULL || !channels[i]->client_tty ||
channels[i]->type != SSH_CHANNEL_OPEN)
continue;
if (ioctl(channels[i]->rfd, TIOCGWINSZ, &ws) < 0)