summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index ef9818b..6c2553a 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -119,6 +119,10 @@ tty_drain(struct tty *tp)
{
int error;
+ if (ttyhook_hashook(tp, getc_inject))
+ /* buffer is inaccessable */
+ return (0);
+
while (ttyoutq_bytesused(&tp->t_outq) > 0) {
ttydevsw_outwakeup(tp);
/* Could be handled synchronously. */
OpenPOWER on IntegriCloud