summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/si.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/si.c')
-rw-r--r--sys/i386/isa/si.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/i386/isa/si.c b/sys/i386/isa/si.c
index 71dcd53..650864f 100644
--- a/sys/i386/isa/si.c
+++ b/sys/i386/isa/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.46 1996/06/21 21:35:01 peter Exp $
+ * $Id: si.c,v 1.47 1996/06/30 04:56:05 peter Exp $
*/
#ifndef lint
@@ -1059,8 +1059,11 @@ siwrite(dev, uio, flag)
pp->sp_state |= SS_WAITWRITE;
DPRINT((pp, DBG_WRITE, "in siwrite, wait for SS_BLOCKWRITE to clear\n"));
if (error = ttysleep(tp, (caddr_t)pp, TTOPRI|PCATCH,
- "siwrite", 0))
+ "siwrite", tp->t_timeout)) {
+ if (error == ETIMEDOUT)
+ error = EIO;
goto out;
+ }
}
error = (*linesw[tp->t_line].l_write)(tp, uio, flag);
OpenPOWER on IntegriCloud