From a526d6bb6754013a6062f99e3a8becb34e4afdf9 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 24 Jun 1995 16:28:20 +0000 Subject: [PATCH] ttywait: convert EWOULDBLOCK to EIO, when t_timeout expired --- sys/kern/tty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index bccf119f9a67..e94ffd7094b0 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; }