summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-11-05 20:35:44 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-11-05 20:35:44 +1100
commit5d78de628376f55fd2fc5acad14733cf90867425 (patch)
tree806ff3f561b6251fe8ac13a23975ac208c09d514 /channels.c
parentb2694f0e8a54112200f2638f01b622f603dd125f (diff)
- djm@cvs.openbsd.org 2004/10/29 21:47:15
[channels.c channels.h clientloop.c] 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 'channels.c')
-rw-r--r--channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index ac35293d4..8550e51ca 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.210 2004/08/23 11:48:47 djm Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.211 2004/10/29 21:47:15 djm Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -2577,7 +2577,7 @@ channel_send_window_changes(void)
2577 struct winsize ws; 2577 struct winsize ws;
2578 2578
2579 for (i = 0; i < channels_alloc; i++) { 2579 for (i = 0; i < channels_alloc; i++) {
2580 if (channels[i] == NULL || 2580 if (channels[i] == NULL || !channels[i]->client_tty ||
2581 channels[i]->type != SSH_CHANNEL_OPEN) 2581 channels[i]->type != SSH_CHANNEL_OPEN)
2582 continue; 2582 continue;
2583 if (ioctl(channels[i]->rfd, TIOCGWINSZ, &ws) < 0) 2583 if (ioctl(channels[i]->rfd, TIOCGWINSZ, &ws) < 0)