Add tty_attach() calls.

This commit is contained in:
leo 1996-06-18 05:54:59 +00:00
parent 36720c448c
commit d84f4c4b18
2 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ite.c,v 1.12 1996/04/18 08:51:59 leo Exp $ */
/* $NetBSD: ite.c,v 1.13 1996/06/18 05:54:59 leo Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -396,10 +396,12 @@ iteopen(dev, mode, devtype, p)
ip = getitesp(dev);
if (ip->tp == NULL)
if (ip->tp == NULL) {
tp = ip->tp = ttymalloc();
else
tp = ip->tp;
tty_attach(tp);
}
else tp = ip->tp;
if ((tp->t_state & (TS_ISOPEN | TS_XCLUDE)) == (TS_ISOPEN | TS_XCLUDE)
&& p->p_ucred->cr_uid != 0)
return (EBUSY);

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.20 1996/05/15 07:29:08 leo Exp $ */
/* $NetBSD: zs.c,v 1.21 1996/06/18 05:55:02 leo Exp $ */
/*
* Copyright (c) 1995 L. Weppelman (Atari modifications)
@ -336,10 +336,11 @@ struct proc *p;
tp = cs->cs_ttyp;
if(tp == NULL) {
cs->cs_ttyp = tp = ttymalloc();
tp->t_dev = dev;
tp->t_oproc = zsstart;
tp->t_param = zsparam;
cs->cs_ttyp = tp = ttymalloc();
tty_attach(tp);
tp->t_dev = dev;
tp->t_oproc = zsstart;
tp->t_param = zsparam;
}
s = spltty();