diff options
author | John-Mark Gurney <jmg@FreeBSD.org> | 2011-01-19 22:16:42 +0000 |
---|---|---|
committer | John-Mark Gurney <jmg@FreeBSD.org> | 2011-01-19 22:16:42 +0000 |
commit | 2634879bbb91bba1cb6f70033ae935eabb067ff5 (patch) | |
tree | cd9b502b26b80206e006911cd7689bc0d0d771dc /share/man | |
parent | d917717eeb9226042eebdfc3e4155b0e143fc709 (diff) | |
download | src-2634879bbb91bba1cb6f70033ae935eabb067ff5.tar.gz src-2634879bbb91bba1cb6f70033ae935eabb067ff5.zip |
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
Notes
Notes:
svn path=/head/; revision=217613
Diffstat (limited to 'share/man')
-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 91a212166bd7..469df9c9f99d 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 |