From owner-freebsd-commit Fri Jul 21 10:47:18 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id KAA14113 for commit-outgoing; Fri, 21 Jul 1995 10:47:18 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id KAA14099 for cvs-sys-outgoing; Fri, 21 Jul 1995 10:47:16 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id KAA14087 ; Fri, 21 Jul 1995 10:47:10 -0700 Date: Fri, 21 Jul 1995 10:47:10 -0700 From: Bruce Evans Message-Id: <199507211747.KAA14087@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/sys tty.h Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/07/21 10:47:09 Modified: sys/sys tty.h 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.