From owner-freebsd-arch Thu Dec 27 11:52:26 2001 Delivered-To: freebsd-arch@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 35F0F37B419 for ; Thu, 27 Dec 2001 11:52:22 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id C721E81E0B; Thu, 27 Dec 2001 13:52:21 -0600 (CST) Date: Thu, 27 Dec 2001 13:52:21 -0600 From: Alfred Perlstein To: Julian Elischer Cc: arch@freebsd.org Subject: Re: the condvar stuff. Message-ID: <20011227135221.F55891@elvis.mu.org> References: <20011227131953.C55891@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from julian@elischer.org on Thu, Dec 27, 2001 at 11:34:44AM -0800 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Julian Elischer [011227 13:40] wrote: > > On cases with timeouts I'm accelerating the timelut. > in _sig cases I'm similating a signal. > if it's neither, I guess I'll just have to leave it. > (the exit will never complete if the thread never leaves the CV.) Please do not accelerate the timeouts. I can imagine someone doing this: error = tsleep(&req, TIMEOUT); if (error == ETIMEOUT) panic("lost req!"); For now just signal the process using a special signal number. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message