- 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
This commit is contained in:
parent
15f33866a6
commit
302ea6f2f9
|
@ -9,6 +9,10 @@
|
||||||
- markus@cvs.openbsd.org 2001/04/15 16:58:03
|
- markus@cvs.openbsd.org 2001/04/15 16:58:03
|
||||||
[authfile.c ssh-keygen.c sshd.c]
|
[authfile.c ssh-keygen.c sshd.c]
|
||||||
don't use errno for key_{load,save}_private; discussion w/ solar@openwall
|
don't use errno for key_{load,save}_private; discussion w/ solar@openwall
|
||||||
|
- 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
|
||||||
- (djm) Convert mandoc manpages to man automatically. Patch from Mark D.
|
- (djm) Convert mandoc manpages to man automatically. Patch from Mark D.
|
||||||
Roth <roth+openssh@feep.net>
|
Roth <roth+openssh@feep.net>
|
||||||
|
|
||||||
|
@ -5096,4 +5100,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1120 2001/04/16 02:00:02 mouring Exp $
|
$Id: ChangeLog,v 1.1121 2001/04/16 02:01:25 mouring Exp $
|
||||||
|
|
10
clientloop.c
10
clientloop.c
|
@ -59,7 +59,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: clientloop.c,v 1.62 2001/04/14 16:33:20 stevesk Exp $");
|
RCSID("$OpenBSD: clientloop.c,v 1.63 2001/04/15 17:16:00 markus Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
|
@ -80,6 +80,7 @@ RCSID("$OpenBSD: clientloop.c,v 1.62 2001/04/14 16:33:20 stevesk Exp $");
|
||||||
#include "authfd.h"
|
#include "authfd.h"
|
||||||
#include "atomicio.h"
|
#include "atomicio.h"
|
||||||
#include "sshtty.h"
|
#include "sshtty.h"
|
||||||
|
#include "misc.h"
|
||||||
|
|
||||||
/* import options */
|
/* import options */
|
||||||
extern Options options;
|
extern Options options;
|
||||||
|
@ -782,6 +783,13 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
|
||||||
max_fd = MAX(connection_in, connection_out);
|
max_fd = MAX(connection_in, connection_out);
|
||||||
|
|
||||||
if (!compat20) {
|
if (!compat20) {
|
||||||
|
/* enable nonblocking unless tty */
|
||||||
|
if (!isatty(fileno(stdin)))
|
||||||
|
set_nonblock(fileno(stdin));
|
||||||
|
if (!isatty(fileno(stdout)))
|
||||||
|
set_nonblock(fileno(stdout));
|
||||||
|
if (!isatty(fileno(stderr)))
|
||||||
|
set_nonblock(fileno(stderr));
|
||||||
max_fd = MAX(max_fd, fileno(stdin));
|
max_fd = MAX(max_fd, fileno(stdin));
|
||||||
max_fd = MAX(max_fd, fileno(stdout));
|
max_fd = MAX(max_fd, fileno(stdout));
|
||||||
max_fd = MAX(max_fd, fileno(stderr));
|
max_fd = MAX(max_fd, fileno(stderr));
|
||||||
|
|
Loading…
Reference in New Issue