diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-14 23:45:43 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-14 23:45:43 +0000 |
commit | 9b826641fd29f6a1ce0ebf91df3983d0565fa241 (patch) | |
tree | e43e7ce3fcdb05216d2614f8d3ae5f710cfc192e /term | |
parent | e8f377b7d6fb42cec8b3868167b3d031f7b34785 (diff) |
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.
Diffstat (limited to 'term')
-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); |