From 9b826641fd29f6a1ce0ebf91df3983d0565fa241 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 14 Mar 1999 23:45:43 +0000 Subject: 1999-03-13 Mark Kettenis * users.c (po_destroy_hook): Only reset state and hardware if TTY_OPEN bit is set in TERMFLAGS. --- term/ChangeLog | 5 +++++ term/users.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'term') 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 + + * 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 * 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); -- cgit v1.2.3