diff options
author | bde <bde@FreeBSD.org> | 1995-07-21 16:30:59 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-07-21 16:30:59 +0000 |
commit | 7eb2bbeebf70c30bde58e58f1000e19b2accfa1e (patch) | |
tree | b96e0631cf5d83a843cd162eb32c6f2b8dbf0058 /sys/i386/isa/pcvt/pcvt_drv.c | |
parent | 5d7eb9210cba744bb5f0d6952e8234ee6e958c2b (diff) | |
download | FreeBSD-src-7eb2bbeebf70c30bde58e58f1000e19b2accfa1e.zip FreeBSD-src-7eb2bbeebf70c30bde58e58f1000e19b2accfa1e.tar.gz |
Obtained from: partly from an ancient patch of mine via 1.1.5
Temporarily nuke TS_WOPEN. It was only used for the obscure MDMBUF
flow control option in the kernel and for informational purposes
in `pstat -t'. The latter worked properly only for ptys. In
general there may be multiple processes sleeping in open() and
multiple processes that successfully opened the tty by opening it
in O_NONBLOCK mode or during a window when CLOCAL was set. tty.c
doesn't have enough information to maintain the flag but always
cleared it in ttyopen().
TS_WOPEN should be restored someday just so that `pstat -t' can
display it (MDMBUF is already fixed). Fixing it requires counting
of processes sleeping in open() in too many serial drivers.
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index fb2168f..e578d4a 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -421,9 +421,9 @@ pcopen(Dev_t dev, int flag, int mode, struct proc *p) if ((tp->t_state & TS_ISOPEN) == 0) { -#if !(PCVT_FREEBSD > 114) +#ifdef TS_WOPEN /* not (FreeBSD-1.1.5 or FreeBSD some time after 2.0.5) */ tp->t_state |= TS_WOPEN; -#endif /* !(PCVT_FREEBSD > 114) */ +#endif ttychars(tp); tp->t_iflag = TTYDEF_IFLAG; |