summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-21 17:47:08 +0000
committerbde <bde@FreeBSD.org>1995-07-21 17:47:08 +0000
commitdaf18dea5d745b2eb3faa60b23438209a50706f3 (patch)
tree151261b2a281da81a044ff5376f738eecbdda214
parentb32a53127db8c848a8cd484fd8e83e0ee44366e3 (diff)
downloadFreeBSD-src-daf18dea5d745b2eb3faa60b23438209a50706f3.zip
FreeBSD-src-daf18dea5d745b2eb3faa60b23438209a50706f3.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.
-rw-r--r--sys/sys/tty.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index b82b0b3..25b81cd 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.h 8.6 (Berkeley) 1/21/94
- * $Id: tty.h,v 1.18 1995/04/15 20:59:28 bde Exp $
+ * $Id: tty.h,v 1.19 1995/07/16 10:22:37 joerg Exp $
*/
#ifndef _SYS_TTY_H_
@@ -139,7 +139,9 @@ struct tty {
#define TS_TBLOCK 0x00040 /* Further input blocked. */
#define TS_TIMEOUT 0x00080 /* Wait for output char processing. */
#define TS_TTSTOP 0x00100 /* Output paused. */
+#if 0
#define TS_WOPEN 0x00200 /* Open in progress. */
+#endif
#define TS_XCLUDE 0x00400 /* Tty requires exclusivity. */
/* State for intra-line fancy editing work. */
OpenPOWER on IntegriCloud