mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 16:49:40 +00:00
ttywait: convert EWOULDBLOCK to EIO, when t_timeout expired
This commit is contained in:
parent
e26bc1e6cc
commit
a526d6bb67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9293
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user