aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/si
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-07-26 16:55:37 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-07-26 16:55:37 +0000
commit66b8e416e62e72eb3bf2d28b3ebb2a6a5504b8f2 (patch)
tree5cfebc1c4ce632f4433406f449cde5abfda44bb5 /sys/dev/si
parent446fe15067f6a2f1c54b9c8612e02d729126949b (diff)
downloadsrc-66b8e416e62e72eb3bf2d28b3ebb2a6a5504b8f2.tar.gz
src-66b8e416e62e72eb3bf2d28b3ebb2a6a5504b8f2.zip
ttysleep() can return EWOULDBLOCK, not ETIMEDOUT as the comment in tty.c
suggests. Pointed out by: bde
Notes
Notes: svn path=/head/; revision=17291
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 650864f1eec0..ce68cb00eb53 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/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.47 1996/06/30 04:56:05 peter Exp $
+ * $Id: si.c,v 1.48 1996/07/26 13:47:38 peter Exp $
*/
#ifndef lint
@@ -1060,7 +1060,7 @@ siwrite(dev, uio, flag)
DPRINT((pp, DBG_WRITE, "in siwrite, wait for SS_BLOCKWRITE to clear\n"));
if (error = ttysleep(tp, (caddr_t)pp, TTOPRI|PCATCH,
"siwrite", tp->t_timeout)) {
- if (error == ETIMEDOUT)
+ if (error == EWOULDBLOCK)
error = EIO;
goto out;
}