diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-08-28 20:23:38 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-08-28 20:23:38 +0000 |
commit | 14499fd63b26f5e7974cf6b23f3e55ceed79a9db (patch) | |
tree | 241471783cea24a4c3442a1cc1cbd800e76804b4 /usr.bin/ssh | |
parent | c7bb2497315367856660dd2c17a97115094bc10c (diff) |
don't complain if setting NONBLOCK fails with ENODEV
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/util.c b/usr.bin/ssh/util.c index ff478e4b0d0..16c8c507291 100644 --- a/usr.bin/ssh/util.c +++ b/usr.bin/ssh/util.c @@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$OpenBSD: util.c,v 1.3 2000/08/28 20:22:02 markus Exp $"); +RCSID("$OpenBSD: util.c,v 1.4 2000/08/28 20:23:37 markus Exp $"); #include "ssh.h" @@ -37,7 +37,9 @@ set_nonblock(int fd) debug("fd %d setting O_NONBLOCK", fd); val |= O_NONBLOCK; if (fcntl(fd, F_SETFL, val) == -1) - error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", fd, strerror(errno)); + if (errno != ENODEV) + error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", + fd, strerror(errno)); } /* Characters considered whitespace in strsep calls. */ |