2.9 select bug

Clyde W. Hoover clyde at ut-ngp.UUCP
Sat Oct 20 00:50:35 AEST 1984


Subject: Select timeouts broken

Index:	/usr/src/sys/sys/sysent.c 2.9BSD

Description:
	Select calls with timeouts will return immediantly if the timeout
	period is less than 65535.  The low word of the timeout duration
	argument to the system call (a long), is not being copied out
	of user space.

Repeat-By:
	This only matters if you have UCB_NET turned on.

	Do a select for less than < 65535 milliseconds and watch it
	return immediantly.
Fix:
	(sysent.c)
<	4, 0,	select 		/* ..... */

>	5, 0,	select 		/* ..... */

I think this should change the behavior of the network somewhat also,
since all the net daemon timeouts will really be as long
as they are supposed to be.
-- 
Shouter-To-Dead-Parrots @ Univ. of Texas Computation Center; Austin, Texas  
"Let's show this prehistoric bitch how we do things downtown"
	clyde at ut-ngp.ARPA, clyde at ut-sally.ARPA
	...!ihnp4!ut-ngp!clyde, ...!allegra!ut-ngp!clyde



More information about the Comp.bugs.2bsd mailing list