summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-01-18 16:50:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-01-18 16:50:26 +0000
commit15f3a3385f1f0a50c90949d58a0084d2a6ae1c35 (patch)
treebe03f6a88efbd7acc4f5af3f6ac3419f63085efb /term
parentd5c57af5f9bf643cf9ef20dc3cf44317d7c2a655 (diff)
(report_carrier_off): Flush queues when carrier turns off.
Diffstat (limited to 'term')
-rw-r--r--term/users.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c
index b4df3dbe..93ce4a88 100644
--- a/term/users.c
+++ b/term/users.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -1836,6 +1836,9 @@ send_signal (int signo)
void
report_carrier_off ()
{
+ clear_queue (inputq);
+ (*bottom->notice_input_flushed) ();
+ drop_output ();
termflags |= NO_CARRIER;
if (!(termstate.c_cflag & CLOCAL))
send_signal (SIGHUP);