From owner-freebsd-current@FreeBSD.ORG Sun Aug 23 06:51:00 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FEFA106568C for ; Sun, 23 Aug 2009 06:51:00 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id B261C8FC0A for ; Sun, 23 Aug 2009 06:50:59 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C1DA41CDC7; Sun, 23 Aug 2009 08:50:58 +0200 (CEST) Date: Sun, 23 Aug 2009 08:50:58 +0200 From: Ed Schouten To: Nathan Lay Message-ID: <20090823065058.GR1292@hoeg.nl> References: <20090822185812.GC61707@felucia.tataz.chchile.org> <20090822194009.GQ1292@hoeg.nl> <4A90C099.8030605@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r8zkF+xBtxUQJvKX" Content-Disposition: inline In-Reply-To: <4A90C099.8030605@comcast.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@FreeBSD.org, Jeremie Le Hen Subject: Re: truss(1) locked in kernel with 8.0-BETA2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2009 06:51:00 -0000 --r8zkF+xBtxUQJvKX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Nathan Lay wrote: > Instead of zeroing and setting master and STDIN_FILENO on the fd_set > every iteration, 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 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--