diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2009-12-12 22:08:37 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2009-12-12 22:08:37 +0000 |
commit | ec897c886dc96978d01d9e1c04071eb988024cae (patch) | |
tree | db39cf28234253ddef5a10c94b6fcaf8d60227a2 /share/man/man9/sleep.9 | |
parent | 4576bbe23390b994369bb0755143954e521f5c18 (diff) | |
download | src-ec897c886dc96978d01d9e1c04071eb988024cae.tar.gz src-ec897c886dc96978d01d9e1c04071eb988024cae.zip |
Document PBDRY and SLEEPQ_STOP_ON_BDRY.
Requested and reviewed by: attilio
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=200450
Diffstat (limited to 'share/man/man9/sleep.9')
-rw-r--r-- | share/man/man9/sleep.9 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/share/man/man9/sleep.9 b/share/man/man9/sleep.9 index a9f087351510..8fb7f88a3200 100644 --- a/share/man/man9/sleep.9 +++ b/share/man/man9/sleep.9 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 4, 2008 +.Dd December 12, 2009 .Os .Dt SLEEP 9 .Sh NAME @@ -97,6 +97,7 @@ when it resumes. should never be used, as it is for compatibility only. A new priority of 0 means to use the thread's current priority when it is made runnable again. +.Pp If .Fa priority includes the @@ -113,6 +114,17 @@ possible, and is returned if the system call should be interrupted by the signal (return .Er EINTR ) . +If +.Dv PBDRY +flag is specified in addition to +.Dv PCATCH , +then the sleeping thread is not stopped while sleeping upon delivery of +.Dv SIGSTOP +or other stop action. +Instead, it is waken up, assuming that stop occurs on reaching a stop +point when returning to usermode. +The flag should be used when sleeping thread owns resources, for instance +vnode locks, that should be freed timely. .Pp The parameter .Fa wmesg |