Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Mar 2005 08:41:10 -0800
From:      Colin Percival <cperciva@freebsd.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        David Xu <davidxu@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/kern kern_sig.c
Message-ID:  <42288FA6.7010102@freebsd.org>
In-Reply-To: <20050305032619.K18638@delplex.bde.org>
References:  <Pine.GSO.4.43.0503031020180.2058-100000@sea.ntplx.net> <200503031116.22840.jhb@FreeBSD.org> <20050305032619.K18638@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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