diff options
author | ache <ache@FreeBSD.org> | 1995-12-28 11:58:35 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-12-28 11:58:35 +0000 |
commit | 7a62d3bb4d16b6454993d52adb4b72f5bd543986 (patch) | |
tree | 36fd78b04f71815e39b35b11ef332fb26582488c /sys/dev/rc | |
parent | 3cebea6eb99141a9d64c9f481cdb7d89a6a62066 (diff) | |
download | FreeBSD-src-7a62d3bb4d16b6454993d52adb4b72f5bd543986.zip FreeBSD-src-7a62d3bb4d16b6454993d52adb4b72f5bd543986.tar.gz |
Add more disc_optim calls to track line disc changes
Diffstat (limited to 'sys/dev/rc')
-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 7b99bd7..6cdf6b9 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(); |