summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-06-24 16:28:20 +0000
committerache <ache@FreeBSD.org>1995-06-24 16:28:20 +0000
commit8f200791c110dad1222aba8eb007acd7b0b68aaa (patch)
tree4a60e93d3b90ef7ec8f885ab3f87c0980f390dff /sys/kern/tty.c
parent8596d76d0be263d358119363a80b04481d7a6ae7 (diff)
downloadFreeBSD-src-8f200791c110dad1222aba8eb007acd7b0b68aaa.zip
FreeBSD-src-8f200791c110dad1222aba8eb007acd7b0b68aaa.tar.gz
ttywait: convert EWOULDBLOCK to EIO, when t_timeout expired
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index bccf119..e94ffd7 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.46 1995/06/11 19:31:34 rgrimes Exp $
+ * $Id: tty.c,v 1.47 1995/06/23 21:20:10 ache Exp $
*/
#include "snp.h"
@@ -1061,6 +1061,8 @@ ttywait(tp)
SET(tp->t_state, TS_ASLEEP);
error = ttysleep(tp, &tp->t_outq, TTOPRI | PCATCH,
"ttywai", tp->t_timeout);
+ if (error == EWOULDBLOCK)
+ error = EIO;
if (error)
break;
}
OpenPOWER on IntegriCloud