diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-01 20:54:17 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-01 20:54:17 +0000 |
commit | c3b7f38405b0869c9d4c64ff04f264f47887cf6c (patch) | |
tree | 2db5a8358696c1bb00e5798fa9bbb775dd59a7ba /term | |
parent | 59f441f32ae37d4c69e7bd067f34830e6297ac30 (diff) |
(po_destroy_hook): Call notice_input_flushed after flushing input queues.
(S_tioctl_tiocflush): Likewise.
(set_state): Likewise.
Diffstat (limited to 'term')
-rw-r--r-- | term/users.c | 12 |
1 files 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]; |