summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/nanosleep.2
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-10-11 16:23:11 +0000
committerkib <kib@FreeBSD.org>2009-10-11 16:23:11 +0000
commitfc266896585f66838536ee5fb80f122f8c10afcb (patch)
tree59c6c31fece5717a3949e9e9270f3f69606385f6 /lib/libc/sys/nanosleep.2
parent9c86ec8748f932339492110583a9e03d19ccad8d (diff)
downloadFreeBSD-src-fc266896585f66838536ee5fb80f122f8c10afcb.zip
FreeBSD-src-fc266896585f66838536ee5fb80f122f8c10afcb.tar.gz
In nanosleep(2), note that the calling thread is put to sleep, not the
whole process. Also explicitely name the parameter that specifies sleep interval.
Diffstat (limited to 'lib/libc/sys/nanosleep.2')
-rw-r--r--lib/libc/sys/nanosleep.24
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index 18e4c88..f50544b 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -47,7 +47,9 @@
The
.Fn nanosleep
system call
-causes the process to sleep for the specified time.
+causes the calling thread to sleep until the time interval specified by
+.Fa rqtp
+has elapsed.
An unmasked signal will
cause it to terminate the sleep early, regardless of the
.Dv SA_RESTART
OpenPOWER on IntegriCloud