diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$OpenBSD: util.c,v 1.1 2000/08/01 19:01:42 provos 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. */ |