cvs commit: src/sys/kern kern_sig.c
John Baldwin
jhb at FreeBSD.org
Mon Mar 7 18:43:34 GMT 2005
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 <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the cvs-src
mailing list