diff options
-rw-r--r-- | sys/kern/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 1d6c70e..adac296 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -340,7 +340,7 @@ tty_close(struct tty *tp) * this method. Only the thread clearing TS_ISOPEN should * release the reference to the tty. */ - if (ISSET(ostate, TS_ISOPEN) && tp->t_refcnt > 1) + if (ISSET(ostate, TS_ISOPEN)) ttyrel(tp); splx(s); return (0); |