From a0dac34fa63a32cd45723bc2437cfff47bb1fd2e Mon Sep 17 00:00:00 2001 From: kib Date: Fri, 23 May 2008 16:43:59 +0000 Subject: Use the t_state for the TS_GONE test. Submitted by: jhb MFC after: 3 days --- sys/kern/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/tty.c b/sys/kern/tty.c index c5947ff..54b793e 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -3181,7 +3181,7 @@ open_top: return (EBUSY); error = tsleep(&tp->t_actout, TTIPRI | PCATCH, "ttybi", 0); - if (error != 0 || (tp->t_flags & TS_GONE)) + if (error != 0 || (tp->t_state & TS_GONE)) goto out; goto open_top; } -- cgit v1.1