Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 7/7/83; site rlgvax.UUCP
Path: utzoo!linus!philabs!seismo!rlgvax!guy
From: guy@rlgvax.UUCP
Newsgroups: net.bugs.usg
Subject: Bug in no-delay read in System III
Message-ID: <806@rlgvax.UUCP>
Date: Sun, 10-Jul-83 03:20:22 EDT
Article-I.D.: rlgvax.806
Posted: Sun Jul 10 03:20:22 1983
Date-Received: Mon, 11-Jul-83 00:00:14 EDT
Organization: CCI Office Systems Group, Reston, VA
Lines: 23

To quote from something sent out with (Warren Montgomery's?) EMACS:

	EMACS has been changed to take advantage of no-delay tty/io...
	IN UNIX 3.0 and UNIX 3.0.1 (System III is 3.0.1 - gh) as released,
	the NDELAY option on I/O does not work (read always returns 0).
	...On our system, we fixed this bug by changing lines 488-500 of
	/usr/src/uts/pdp11/io/tty.c

	FROM
		if (tq->c_cc == 0)
			if (u.u_fmode&FNDELAY)
				return;

	TO

		if (tq->t_cc == 0)
			if (u.u_fmode&FNDELAY && tp->t_rawq.c_cc == 0)
				return;

	Guy Harris
	Computer Consoles, Inc.
	Office Systems Group
	{seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy