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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
* 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);
--
Ed Schouten <ed@80386.nl>
WWW: http://80386.nl/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
iEYEARECAAYFAkqQ5tIACgkQ52SDGA2eCwW52wCeLAts0XoY2JGhKIF0848FhLsM
BlkAnRwXf+O5+nahm8zggAuBNRnWS4Cg
=Nsha
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090823065058.GR1292>
