From owner-freebsd-commit Fri Jul 21 09:31:06 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id JAA09587 for commit-outgoing; Fri, 21 Jul 1995 09:31:06 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id JAA09573 for cvs-sys-outgoing; Fri, 21 Jul 1995 09:31:04 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id JAA09563 ; Fri, 21 Jul 1995 09:31:00 -0700 Date: Fri, 21 Jul 1995 09:31:00 -0700 From: Bruce Evans Message-Id: <199507211631.JAA09563@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/isa/pcvt pcvt_drv.c Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/07/21 09:30:59 Modified: sys/gnu/isdn iitty.c sys/kern tty.c tty_pty.c sys/i386/isa/pcvt pcvt_drv.c Log: 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.