1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix wakeups for TIOCDRAINWAIT. The conditional wakeups introduced in rev

1.59 defeated the point of doing the wakeups (having reduced timeouts
take effect immediately).
This commit is contained in:
Bruce Evans 1995-09-10 11:48:13 +00:00
parent 4590fd3a2a
commit e7c89b42c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10658

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
* $Id: tty.c,v 1.68 1995/08/01 23:38:00 ache Exp $
* $Id: tty.c,v 1.69 1995/08/02 06:55:34 ache Exp $
*/
/*-
@ -1000,7 +1000,8 @@ ttioctl(tp, cmd, data, flag)
if (error)
return (error);
tp->t_timeout = *(int *)data * hz;
ttwwakeup(tp);
wakeup(TSA_OCOMPLETE(tp));
wakeup(TSA_OLOWAT(tp));
break;
case TIOCGDRAINWAIT:
*(int *)data = tp->t_timeout / hz;