diff options
-rw-r--r-- | term/ChangeLog | 5 | ||||
-rw-r--r-- | term/users.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/term/ChangeLog b/term/ChangeLog index 0ddb8471..c4a44b3f 100644 --- a/term/ChangeLog +++ b/term/ChangeLog @@ -1,3 +1,8 @@ +1999-03-13 Mark Kettenis <kettenis@gnu.org> + + * users.c (po_destroy_hook): Only reset state and hardware if + TTY_OPEN bit is set in TERMFLAGS. + Mon Mar 1 09:11:06 1999 Thomas Bushnell, BSG <tb@mit.edu> * munge.c (output_width): If C is a tab, then the width is the diff --git a/term/users.c b/term/users.c index c3c01ca3..16e83ee9 100644 --- a/term/users.c +++ b/term/users.c @@ -284,7 +284,7 @@ po_destroy_hook (struct trivfs_peropen *po) termflags &= ~ICKY_ASYNC; nperopens--; - if (!nperopens) + if (!nperopens && (termflags & TTY_OPEN)) { /* Empty queues */ clear_queue (inputq); |