ttysleep() can return EWOULDBLOCK, not ETIMEDOUT as the comment in tty.c

suggests.

Pointed out by: bde
This commit is contained in:
Peter Wemm 1996-07-26 16:55:37 +00:00
parent 446fe15067
commit 66b8e416e6
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}