diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | #include "includes.h" | 1 | #include "includes.h" |
2 | RCSID("$OpenBSD: util.c,v 1.1 2000/08/01 19:01:42 provos Exp $"); | 2 | RCSID("$OpenBSD: util.c,v 1.4 2000/08/28 20:23:37 markus Exp $"); |
3 | 3 | ||
4 | #include "ssh.h" | 4 | #include "ssh.h" |
5 | 5 | ||
@@ -37,7 +37,9 @@ set_nonblock(int fd) | |||
37 | debug("fd %d setting O_NONBLOCK", fd); | 37 | debug("fd %d setting O_NONBLOCK", fd); |
38 | val |= O_NONBLOCK; | 38 | val |= O_NONBLOCK; |
39 | if (fcntl(fd, F_SETFL, val) == -1) | 39 | if (fcntl(fd, F_SETFL, val) == -1) |
40 | error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", fd, strerror(errno)); | 40 | if (errno != ENODEV) |
41 | error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", | ||
42 | fd, strerror(errno)); | ||
41 | } | 43 | } |
42 | 44 | ||
43 | /* Characters considered whitespace in strsep calls. */ | 45 | /* Characters considered whitespace in strsep calls. */ |