diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-12-28 11:58:35 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-12-28 11:58:35 +0000 |
| commit | 717df65ccef2519694d0f5d363f2f2dd2510a376 (patch) | |
| tree | 36fd78b04f71815e39b35b11ef332fb26582488c /sys/dev | |
| parent | 2a510f5c125941e1bc5778f208a22af31547bce5 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/rc/rc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 7b99bd7b1cab..6cdf6b919d0f 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -830,6 +830,7 @@ again: goto again; } error = (*linesw[tp->t_line].l_open)(dev, tp); + disc_optim(tp, &tp->t_termios, rc); if ((tp->t_state & TS_ISOPEN) && CALLOUT(dev)) rc->rc_flags |= RC_ACTOUT; out: @@ -860,6 +861,7 @@ rcclose(dev, flag, mode, p) #endif s = spltty(); (*linesw[tp->t_line].l_close)(tp, flag); + disc_optim(tp, &tp->t_termios, rc); rcstop(tp, FREAD | FWRITE); rc_hardclose(rc); ttyclose(tp); @@ -1133,6 +1135,7 @@ struct proc *p; if (error >= 0) return (error); error = ttioctl(tp, cmd, data, flag); + disc_optim(tp, &tp->t_termios, rc); if (error >= 0) return (error); s = spltty(); |
