From owner-cvs-all@FreeBSD.ORG Mon Mar 7 18:43:34 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 812E216A4FE for ; Mon, 7 Mar 2005 18:43:34 +0000 (GMT) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id A41AE43D5E for ; Mon, 7 Mar 2005 18:43:33 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 29977 invoked from network); 7 Mar 2005 18:43:33 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 7 Mar 2005 18:43:33 -0000 Received: from [10.50.40.202] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j27IhKjZ023186; Mon, 7 Mar 2005 13:43:25 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Colin Percival Date: Mon, 7 Mar 2005 11:46:48 -0500 User-Agent: KMail/1.6.2 References: <20050305032619.K18638@delplex.bde.org> <42288FA6.7010102@freebsd.org> In-Reply-To: <42288FA6.7010102@freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503071146.48394.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: Scott Long cc: src-committers@FreeBSD.org cc: Bruce Evans cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Daniel Eischen cc: David Xu Subject: Re: cvs commit: src/sys/kern kern_sig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 18:43:34 -0000 On Friday 04 March 2005 11:41 am, Colin Percival wrote: > Bruce Evans wrote: > > Sleeping on a stack address is just a bug [...] > > I was told that this was the canonical way to say "go to sleep and don't > wake up until the timo expires" was to tsleep() with ident equal to > something from the stack. > > If this isn't correct, what is the correct way to do this? I've seen > some code which does tsleep(NULL, ... ), but I was told that was also > wrong. I actually want to make a pause() function for just this purpose that uses sleepq_*() with a specific never_wake_me_up wait channel. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org