🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #117

more on flushtty vs XON/XOFF

#117
From: utzoohenry
Date: Thu, 31 Mar 1983 16:01
18 lines
1125 bytes
A little while ago, I observed that there was an apparent bug in the
V7 tty driver:  the flushtty() routine turns off the "stopped" bit
used for stop/start handshaking.  This is really fun if your terminal
does expect the cpu to honor this protocol all the time.  At the time,
I asked if anybody could think of any reason why this behavior was
useful (except at final close, when the bit gets taken care of by
other code anyway!).  No replies.  I think it is safe to call this
line of code an out-and-out mistake, and call for its removal.  The
offending line is about line 339 in tty.c, in the flushtty() routine,
and reads:

	tp->t_state &= ~TTSTOP;

The fix is, remove it.  I haven't actually had a chance to try this
yet;  I will post the results when I do.

					Henry Spencer
					U of Toronto
Technical Details
Message-ID: <bnews.utzoo.2895>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!henry
Newsgroups: net.bugs.v7,net.unix-wizards
Title: more on flushtty vs XON/XOFF 
Article-I.D.: utzoo.2895
Posted: Thu Mar 31 16:01:08 1983
Received: Thu Mar 31 16:01:08 1983
Subject: more on flushtty vs XON/XOFF
Date: Thu, 31 Mar 1983 16:01:08 +0000
Message-ID: <bnews.utzoo.2895>