cvs commit: src/sys/kern kern_sig.c

Colin Percival cperciva at freebsd.org
Fri Mar 4 08:41:12 PST 2005


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


More information about the cvs-all mailing list