summaryrefslogtreecommitdiff
path: root/term/users.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-03-14 23:45:43 +0000
committerThomas Bushnell <thomas@gnu.org>1999-03-14 23:45:43 +0000
commit9b826641fd29f6a1ce0ebf91df3983d0565fa241 (patch)
treee43e7ce3fcdb05216d2614f8d3ae5f710cfc192e /term/users.c
parente8f377b7d6fb42cec8b3868167b3d031f7b34785 (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/users.c')
-rw-r--r--term/users.c2
1 files changed, 1 insertions, 1 deletions
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);