Replace EWOULDBLOCK to EIO in ttwrite, when t_timeout expired

This commit is contained in:
Andrey A. Chernov 1995-06-23 21:20:10 +00:00
parent 7cb00bd6b4
commit 13cf82d487
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9289

View File

@ -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 @@ ttwrite(tp, uio, flag)
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;