Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2001 13:52:21 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        arch@freebsd.org
Subject:   Re: the condvar stuff.
Message-ID:  <20011227135221.F55891@elvis.mu.org>
In-Reply-To: <Pine.BSF.4.21.0112271132560.84622-100000@InterJet.elischer.org>; from julian@elischer.org on Thu, Dec 27, 2001 at 11:34:44AM -0800
References:  <20011227131953.C55891@elvis.mu.org> <Pine.BSF.4.21.0112271132560.84622-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Julian Elischer <julian@elischer.org> [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




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