summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-06-23 21:20:10 +0000
committerache <ache@FreeBSD.org>1995-06-23 21:20:10 +0000
commit132e30858883b4d87a0d6a1531c2f4afb5018624 (patch)
treed53853dea4af6e1c6fcf60a1089db6cae365b933 /sys/kern/tty.c
parent9cb3b2d796ea921c57d1d244b5178f9d68450a1d (diff)
downloadFreeBSD-src-132e30858883b4d87a0d6a1531c2f4afb5018624.zip
FreeBSD-src-132e30858883b4d87a0d6a1531c2f4afb5018624.tar.gz
Replace EWOULDBLOCK to EIO in ttwrite, 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 1df2b4a..bccf119 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.45.2.3 1995/06/05 01:23:10 davidg Exp $
+ * $Id: tty.c,v 1.46 1995/06/11 19:31:34 rgrimes Exp $
*/
#include "snp.h"
@@ -1832,6 +1832,8 @@ ovhiwat:
SET(tp->t_state, TS_ASLEEP);
error = ttysleep(tp, &tp->t_outq, TTOPRI | PCATCH, "ttywri", tp->t_timeout);
splx(s);
+ if (error == EWOULDBLOCK)
+ error = EIO;
if (error)
goto out;
goto loop;
OpenPOWER on IntegriCloud