From c3b7f38405b0869c9d4c64ff04f264f47887cf6c Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 1 Dec 1995 20:54:17 +0000 Subject: (po_destroy_hook): Call notice_input_flushed after flushing input queues. (S_tioctl_tiocflush): Likewise. (set_state): Likewise. --- term/users.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/term/users.c b/term/users.c index aca8052e..b8114a68 100644 --- a/term/users.c +++ b/term/users.c @@ -195,6 +195,8 @@ po_destroy_hook (struct trivfs_peropen *po) /* Empty queues */ clear_queue (inputq); clear_queue (rawq); + (*bottom->notice_input_flushed) (); + drain_output (); /* Possibly drop carrier */ @@ -651,7 +653,10 @@ S_tioctl_tiocflush (io_t port, flags = O_READ|O_WRITE; if (flags & O_READ) - clear_queue (inputq); + { + clear_queue (inputq); + (*bottom->notice_input_flushed) (); + } if (flags & O_WRITE) drop_output (); @@ -727,7 +732,10 @@ set_state (io_t port, } if (flushi) - clear_queue (inputq); + { + clear_queue (inputq); + (*bottom->notice_input_flushed) (); + } oldlflag = termstate.c_lflag; termstate.c_iflag = modes[0]; -- cgit v1.2.3