summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-09-10 11:48:13 +0000
committerbde <bde@FreeBSD.org>1995-09-10 11:48:13 +0000
commit13843b0bec4c3f2f8b760bbfab827254811e6ebf (patch)
treeebeae3f9f669b09112e5da93f76487e3f3ce68df /sys/kern/tty.c
parent573c688a6892861601397d1797b75cf321e5a3b6 (diff)
downloadFreeBSD-src-13843b0bec4c3f2f8b760bbfab827254811e6ebf.zip
FreeBSD-src-13843b0bec4c3f2f8b760bbfab827254811e6ebf.tar.gz
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).
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e8c111d..de2da46 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -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;
OpenPOWER on IntegriCloud