summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2003-01-03 22:39:39 +0000
committertrhodes <trhodes@FreeBSD.org>2003-01-03 22:39:39 +0000
commit96f6c756aec313cc9d28ad50ccaf4e8a0502603f (patch)
tree667099431b4343c64590c3982072bbbd8e0385dc /share
parent0c2fa737a726b3bec7beae7d22f55bee37b32110 (diff)
downloadFreeBSD-src-96f6c756aec313cc9d28ad50ccaf4e8a0502603f.zip
FreeBSD-src-96f6c756aec313cc9d28ad50ccaf4e8a0502603f.tar.gz
mdoc(7) police: Remove hard sentence breaks.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/sleep.927
1 files changed, 18 insertions, 9 deletions
diff --git a/share/man/man9/sleep.9 b/share/man/man9/sleep.9
index 09da0e5..ba1d339 100644
--- a/share/man/man9/sleep.9
+++ b/share/man/man9/sleep.9
@@ -51,7 +51,8 @@ The functions
.Fn tsleep
and
.Fn wakeup
-handle event-based process blocking. If a process must wait for an
+handle event-based process blocking.
+If a process must wait for an
external event, it is put on sleep by
.Nm tsleep .
The parameter
@@ -83,19 +84,22 @@ runnable.
.Pp
.Nm Tsleep
is the general sleep call. Suspends the current process until a wakeup is
-performed on the specified identifier. The process will then be made
+performed on the specified identifier.
+The process will then be made
runnable with the specified
.Ar priority .
Sleeps at most
.Ar timo
-\&/ hz seconds (0 means no timeout). If
+\&/ hz seconds (0 means no timeout).
+If
.Ar pri
includes the
.Dv PCATCH
flag, signals are checked before and after sleeping, else signals are
not checked. Returns 0 if awakened,
.Er EWOULDBLOCK
-if the timeout expires. If
+if the timeout expires.
+If
.Dv PCATCH
is set and a signal needs to be delivered,
.Er ERESTART
@@ -107,17 +111,20 @@ is returned if the system call should be interrupted by the signal
.Er EINTR ) .
.Pp
.Nm Msleep
-is a variation on tsleep. The parameter
+is a variation on tsleep.
+The parameter
.Ar mtx
is a mutex, which will be exited before sleeping, and entered before
.Nm msleep
-returns. If
+returns.
+If
.Ar pri
includes the
.Dv PDROP
flag, the
.Ar mtx
-parameter will not be entered before returning. The mutex is
+parameter will not be entered before returning.
+The mutex is
used to ensure that a condition can be checked atomically, and
that the current process can be suspended without missing a
change to the condition, or an associated wakeup.
@@ -128,7 +135,8 @@ See above.
.Xr malloc 9 ,
.Xr mi_switch 9
.Sh HISTORY
-The sleep/wakeup process synchronization mechanism is very old. It
+The sleep/wakeup process synchronization mechanism is very old.
+It
appeared in a very early version of
.Ux .
.Pp
@@ -139,7 +147,8 @@ function appeared in
.Pp
The
.Nm
-function used to be the traditional form. It doesn't let you specify a timeout or a
+function used to be the traditional form.
+It does not let you specify a timeout or a
.Ar wmesg ,
hence it has been discontinued.
.Sh AUTHORS
OpenPOWER on IntegriCloud