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/users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term/users.c') 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