From owner-cvs-all@FreeBSD.ORG Fri Mar 4 16:41:12 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 A75E616A4D1; Fri, 4 Mar 2005 16:41:12 +0000 (GMT) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40C6543D3F; Fri, 4 Mar 2005 16:41:12 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd4mr3so.prod.shaw.ca (pd4mr3so-qfe3.prod.shaw.ca [10.0.141.214]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ICU007576CNP7E0@l-daemon>; Fri, 04 Mar 2005 09:41:11 -0700 (MST) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd4mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ICU002CZ6CN2C40@pd4mr3so.prod.shaw.ca>; Fri, 04 Mar 2005 09:41:11 -0700 (MST) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0ICU002B86CMXK@l-daemon>; Fri, 04 Mar 2005 09:41:11 -0700 (MST) Date: Fri, 04 Mar 2005 08:41:10 -0800 From: Colin Percival In-reply-to: <20050305032619.K18638@delplex.bde.org> To: Bruce Evans Message-id: <42288FA6.7010102@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <200503031116.22840.jhb@FreeBSD.org> <20050305032619.K18638@delplex.bde.org> User-Agent: Mozilla Thunderbird 1.0 (X11/20050302) cc: Scott Long cc: src-committers@FreeBSD.org cc: John Baldwin 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: Fri, 04 Mar 2005 16:41:12 -0000 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. Colin Percival