Clarify text to be consistent with nanosleep(2),

since sleep(3) is implemented in terms of nanosleep(2).

This is similar to the sleep(3) man page for Darwin.
This commit is contained in:
Craig Rodrigues 2015-01-08 01:27:43 +00:00
parent 0061cd79c9
commit 9cebfb86a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276802

View file

@ -33,7 +33,7 @@
.Os
.Sh NAME
.Nm sleep
.Nd suspend process execution for an interval measured in seconds
.Nd suspend thread execution for an interval measured in seconds
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
@ -43,11 +43,11 @@
.Sh DESCRIPTION
The
.Fn sleep
function suspends execution of the calling process until either
function suspends execution of the calling thread until either
.Fa seconds
seconds have elapsed or a signal is delivered to the process and its
seconds have elapsed or a signal is delivered to the thread and its
action is to invoke a signal-catching function or to terminate the
process.
thread or process.
System activity may lengthen the sleep by an indeterminate amount.
.Pp
This function is implemented using