From 743c8ea38e50908be9d2d707ff46154a4780d9d5 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 2 Aug 1994 08:45:46 +0000 Subject: [PATCH] Clear t_flags on first open. --- sys/kern/tty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 17a655bcc913..cc9e4e63f5a6 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: tty.c,v 1.49 1994/06/29 06:33:20 cgd Exp $ */ +/* $NetBSD: tty.c,v 1.50 1994/08/02 08:45:46 mycroft Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 1991, 1993 @@ -167,6 +167,9 @@ ttyopen(device, tp) if (!ISSET(tp->t_state, TS_ISOPEN)) { SET(tp->t_state, TS_ISOPEN); bzero(&tp->t_winsize, sizeof(tp->t_winsize)); +#if defined(COMPAT_43) || defined(COMPAT_SUNOS) + tp->t_flags = 0; +#endif } CLR(tp->t_state, TS_WOPEN); splx(s);