diff options
author | jmg <jmg@FreeBSD.org> | 2011-01-19 22:16:42 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2011-01-19 22:16:42 +0000 |
commit | b9c3284acce37464aa09aa152e7b09ac335fb83e (patch) | |
tree | cd9b502b26b80206e006911cd7689bc0d0d771dc /share/man/man9/sleep.9 | |
parent | 71b8a6991f2884641be903eb601027dbc6fba75f (diff) | |
download | FreeBSD-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/man/man9/sleep.9')
-rw-r--r-- | share/man/man9/sleep.9 | 8 |
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 |