]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Clarify RETURN VALUE discussion.
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 30 Apr 2006 22:10:38 +0000 (22:10 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 30 Apr 2006 22:10:38 +0000 (22:10 +0000)
man2/nanosleep.2

index eec263b586f27b5366723b66ef73695167bfd917..1fd6c660b3e1711e3dda0dfbf75c6f63478e0397 100644 (file)
@@ -79,13 +79,15 @@ and
 has the advantage of not affecting any signals, it is standardized by
 POSIX, it provides higher timing resolution, and it allows to continue
 a sleep that has been interrupted by a signal more easily.
-.SH ERRORS
-In case of an error or exception, the
+.SH "RETURN VALUE"
+On successfully sleeping for the requested interval,
 .BR nanosleep ()
-system call returns \-1 instead of 0 and sets
+returns 0.
+If the call is interrupted by a signal handler or encounters an error,
+then it returns \-1, with 
 .I errno
-to one of the following values:
-.TP
+set to indicate the error.
+.SH ERRORS
 .B EFAULT
 Problem with copying information from user space.
 .TP