document that even when wakeup_one is used to wakeup, msleep and friends

may still return a non-zero value... You are not guaranteed to get a one
to one mapping between wakeup_one and zero return values...

Reviewed by:	kib
MFC after:	3 days
This commit is contained in:
John-Mark Gurney 2011-01-19 22:16:42 +00:00
parent d917717eeb
commit 2634879bbb

View File

@ -255,6 +255,14 @@ pay particular attention to ensure that no other threads wait on the
same
.Fa chan .
.Sh RETURN VALUES
When awakened by a call to
.Fn wakeup
or
.Fn wakeup_one ,
if a signal is pending and
.Dv PCATCH
is specified,
a non-zero error code is returned.
If the thread is awakened by a call to
.Fn wakeup
or