From 27604f1da574fec38ec9cb56b650097becc3801f Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Thu, 26 Nov 2015 13:45:35 -0500 Subject: [PATCH] coco3: devtty: bugfix: tty_close not closing port at dw level. --- Kernel/platform-coco3/devtty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 03221107..84d5553a 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -203,7 +203,7 @@ void apply_gime( int minor ){ /* A wrapper for tty_close that closes the DW port properly */ int my_tty_close(uint8_t minor) { - if (minor > 2 && ttydata[minor].users == 0) + if (minor > 2 && ttydata[minor].users == 1) dw_vclose(minor); return (tty_close(minor)); } -- 2.34.1