summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-16 02:01:25 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-16 02:01:25 +0000
commit302ea6f2f919acb2727a21f2c2c5e86bfed6053a (patch)
treecd45f8c863c5b7016c06e536905268900a3aea72
parent15f33866a6fb9e67f2a89f5edc8b8c7635f6d984 (diff)
- markus@cvs.openbsd.org 2001/04/15 17:16:00
[clientloop.c] set stdin/out/err to nonblocking in SSH proto 1, too. suggested by ho@ should fix some of the blocking problems for rsync over SSH-1
-rw-r--r--ChangeLog6
-rw-r--r--clientloop.c10
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9951503b8..0d84abf79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@
9 - markus@cvs.openbsd.org 2001/04/15 16:58:03 9 - markus@cvs.openbsd.org 2001/04/15 16:58:03
10 [authfile.c ssh-keygen.c sshd.c] 10 [authfile.c ssh-keygen.c sshd.c]
11 don't use errno for key_{load,save}_private; discussion w/ solar@openwall 11 don't use errno for key_{load,save}_private; discussion w/ solar@openwall
12 - markus@cvs.openbsd.org 2001/04/15 17:16:00
13 [clientloop.c]
14 set stdin/out/err to nonblocking in SSH proto 1, too. suggested by ho@
15 should fix some of the blocking problems for rsync over SSH-1
12 - (djm) Convert mandoc manpages to man automatically. Patch from Mark D. 16 - (djm) Convert mandoc manpages to man automatically. Patch from Mark D.
13 Roth <roth+openssh@feep.net> 17 Roth <roth+openssh@feep.net>
14 18
@@ -5096,4 +5100,4 @@
5096 - Wrote replacements for strlcpy and mkdtemp 5100 - Wrote replacements for strlcpy and mkdtemp
5097 - Released 1.0pre1 5101 - Released 1.0pre1
5098 5102
5099$Id: ChangeLog,v 1.1120 2001/04/16 02:00:02 mouring Exp $ 5103$Id: ChangeLog,v 1.1121 2001/04/16 02:01:25 mouring Exp $
diff --git a/clientloop.c b/clientloop.c
index 24ea0dec0..95c00f343 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
59 */ 59 */
60 60
61#include "includes.h" 61#include "includes.h"
62RCSID("$OpenBSD: clientloop.c,v 1.62 2001/04/14 16:33:20 stevesk Exp $"); 62RCSID("$OpenBSD: clientloop.c,v 1.63 2001/04/15 17:16:00 markus Exp $");
63 63
64#include "ssh.h" 64#include "ssh.h"
65#include "ssh1.h" 65#include "ssh1.h"
@@ -80,6 +80,7 @@ RCSID("$OpenBSD: clientloop.c,v 1.62 2001/04/14 16:33:20 stevesk Exp $");
80#include "authfd.h" 80#include "authfd.h"
81#include "atomicio.h" 81#include "atomicio.h"
82#include "sshtty.h" 82#include "sshtty.h"
83#include "misc.h"
83 84
84/* import options */ 85/* import options */
85extern Options options; 86extern Options options;
@@ -782,6 +783,13 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
782 max_fd = MAX(connection_in, connection_out); 783 max_fd = MAX(connection_in, connection_out);
783 784
784 if (!compat20) { 785 if (!compat20) {
786 /* enable nonblocking unless tty */
787 if (!isatty(fileno(stdin)))
788 set_nonblock(fileno(stdin));
789 if (!isatty(fileno(stdout)))
790 set_nonblock(fileno(stdout));
791 if (!isatty(fileno(stderr)))
792 set_nonblock(fileno(stderr));
785 max_fd = MAX(max_fd, fileno(stdin)); 793 max_fd = MAX(max_fd, fileno(stdin));
786 max_fd = MAX(max_fd, fileno(stdout)); 794 max_fd = MAX(max_fd, fileno(stdout));
787 max_fd = MAX(max_fd, fileno(stderr)); 795 max_fd = MAX(max_fd, fileno(stderr));