Re: truss(1) locked in kernel with 8.0-BETA2

From: Ed Schouten <ed_at_80386.nl>
Date: Sun, 23 Aug 2009 08:50:58 +0200
* Nathan Lay <nslay_at_comcast.net> wrote:
> Instead of zeroing and setting master and STDIN_FILENO on the fd_set
> every iteration, <snip>

The current code doesn't zero the fdsets each iteration, only during
startup:

|  	FD_ZERO(&rfd);
|  	for (;;) {
|  		FD_SET(master, &rfd);
| 		if (!nostdin)
| 			FD_SET(STDIN_FILENO, &rfd);

-- 
 Ed Schouten <ed_at_80386.nl>
 WWW: http://80386.nl/

Received on Sun Aug 23 2009 - 04:51:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:54 UTC