summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-12 21:20:23 +1000
committerDamien Miller <djm@mindrot.org>2000-07-12 21:20:23 +1000
commit055dc369837e1bde0f84a7ecfe669e4e44f10db9 (patch)
tree6888dabca77ebcdf418b7b25f6796aee5de01a08
parent2e7ba69450e280ff5c3063eb6e6c65281da8d9ed (diff)
Diff hunk which slipped thruV_2_1_1_P3
-rw-r--r--aux.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/aux.c b/aux.c
index 899142da..63f7dd41 100644
--- a/aux.c
+++ b/aux.c
@@ -1,5 +1,5 @@
#include "includes.h"
-RCSID("$OpenBSD: aux.c,v 1.2 2000/05/17 09:47:59 markus Exp $");
+RCSID("$OpenBSD: aux.c,v 1.3 2000/06/18 17:13:41 markus Exp $");
#include "ssh.h"
@@ -22,6 +22,11 @@ void
set_nonblock(int fd)
{
int val;
+ if (isatty(fd)) {
+ /* do not mess with tty's */
+ debug("no set_nonblock for tty fd %d", fd);
+ return;
+ }
val = fcntl(fd, F_GETFL, 0);
if (val < 0) {
error("fcntl(%d, F_GETFL, 0): %s", fd, strerror(errno));