summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2011-01-19 22:16:42 +0000
committerjmg <jmg@FreeBSD.org>2011-01-19 22:16:42 +0000
commitb9c3284acce37464aa09aa152e7b09ac335fb83e (patch)
treecd9b502b26b80206e006911cd7689bc0d0d771dc /share
parent71b8a6991f2884641be903eb601027dbc6fba75f (diff)
downloadFreeBSD-src-b9c3284acce37464aa09aa152e7b09ac335fb83e.zip
FreeBSD-src-b9c3284acce37464aa09aa152e7b09ac335fb83e.tar.gz
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
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/sleep.98
1 files changed, 8 insertions, 0 deletions
diff --git a/share/man/man9/sleep.9 b/share/man/man9/sleep.9
index 91a2121..469df9c 100644
--- a/share/man/man9/sleep.9
+++ b/share/man/man9/sleep.9
@@ -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
OpenPOWER on IntegriCloud