Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2009 08:50:58 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Nathan Lay <nslay@comcast.net>
Cc:        freebsd-current@FreeBSD.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: truss(1) locked in kernel with 8.0-BETA2
Message-ID:  <20090823065058.GR1292@hoeg.nl>
In-Reply-To: <4A90C099.8030605@comcast.net>
References:  <20090822185812.GC61707@felucia.tataz.chchile.org> <20090822194009.GQ1292@hoeg.nl> <4A90C099.8030605@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--r8zkF+xBtxUQJvKX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Nathan Lay <nslay@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);

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--r8zkF+xBtxUQJvKX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkqQ5tIACgkQ52SDGA2eCwW52wCeLAts0XoY2JGhKIF0848FhLsM
BlkAnRwXf+O5+nahm8zggAuBNRnWS4Cg
=Nsha
-----END PGP SIGNATURE-----

--r8zkF+xBtxUQJvKX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090823065058.GR1292>