From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-14 11:45:03 PST Xref: gmd.de comp.org.decus:3055 comp.os.vms:42572 comp.sys.dec:14435 comp.unix.advocacy:1244 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-2.peachnet.edu!concert!theo!cardinal.ncsc.org!coats From: coats@cardinal.ncsc.org (Carlie Coats) Subject: Re: Who Is the Duke of Canterbury? Message-ID: <1994Mar14.194503.8751@mcnc.org> Sender: daemon@mcnc.org (David Daemon) Nntp-Posting-Host: cardinal.ncsc.org Organization: North Carolina Supercomputing Center References: <2l369r$6dd@network.ucsd.edu> <1994Mar14.014808.26266@mixcom.mixcom.com> <1994Mar14.092300.1254@tachyon.com> Date: Mon, 14 Mar 1994 19:45:03 GMT In article <1994Mar14.092300.1254@tachyon.com> wayne@tachyon.com (Wayne Sewell) writes: [...lots of stuff deleted in the interests of net.bandwidth] > >These flame wars wouldn't be so bad if they served a purpose other than raising >blood pressure... I did get _one_ benefit out of this one. I have come to understand *why* UN*X apps are so persistently hostile to touch typists. To recap: changing UN*X tty mode between raw and cooked causes stdin to be flushed, thanks to some Berzerkeleyite whom I daily wish I could have (a) shot, (b) drawn and quartered, (c) tarred and feathered, (d) run out of town on a rail, and finally (e) buried in a cesspool. This behavior is beyond my ability to fix, since it is *not* user-level code. Applications may attempt to make their behavior more friendly to touch typists (although almost none of them do) by first buffering in any extant stdin, then changing tty mode. However, such applications *still* cannot _guarantee_ friendliness to touch typists, because they cannot guarantee avoidance of race conditions (consider a *fast* typist on a system that has been fork-bombed--and some of the systems I have to work on (EPA's National Environmental Supercomputing Center machines are examples) do a good imitation). What a UN*X applications program would need to be able to do in order to guarantee friendliness to touch typists is something like the following: establish critical section, locking stdin buffer existing contents of stdin change tty mode release critical section process previously buffered contents of stdin process stdin Of course, since UN*X has no facilities for establishing such critical sections, applications programs have no way to guarantee that race conditions cannot arise between me at my keyboard and the app, buffering stdin and changing tty mode. Most UN*X apps don't even _try_. I understand from other conversations elsewhere that the situation on certain blue-colored mainframes is even worse... glad I don't have to deal with _that_! Carlie J. Coats, Jr. coats@cardinal.ncsc.org Environmental Programs phone: (919)248-9241 North Carolina Supercomputing Center fax: (919)248-9245 3021 Cornwallis Road P. O. Box 12889 Research Triangle Park, N. C. 27709-2889 USA "My opinions are my own, and I've got *lots* of them!"