linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Yuri Kozlov <yuray-YPGtXv8QU+00kPtPmH8OGQ@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: incorrect clock_nanosleep.2
Date: Sun, 29 Aug 2010 06:32:49 +0200	[thread overview]
Message-ID: <AANLkTinvx7UN_Fx2YB-0sqV7PLpm2Y-uiSrdbiufkqRG@mail.gmail.com> (raw)
In-Reply-To: <20100812095939.13c8ab26-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org>

Hello Yuri,

On Thu, Aug 12, 2010 at 7:59 AM, Yuri Kozlov <yuray-YPGtXv8QU+00kPtPmH8OGQ@public.gmane.org> wrote:
> Hello.
>
> Next two paragraph is contradict.
>
> If the call is interrupted by a signal handler, clock_nanosleep() returns
> -1, and sets errno to EINTR.
>
> And below:
> RETURN VALUE
>       On successfully sleeping for the requested interval,
>       clock_nanosleep() returns 0.  If the call is interrupted by a
>       signal handler or encounters an error, then it returns a positive
>       error number.
>
> So, return value is positive or -1 ?

Thanks. This was in fact independently reported a few weeks ago, and
this fix was applied:

--- a/man2/clock_nanosleep.2
+++ b/man2/clock_nanosleep.2
@@ -124,9 +124,7 @@ that terminates the process.

 If the call is interrupted by a signal handler,
 .BR clock_nanosleep ()
-returns \-1, and sets
-.I errno
-to
+fails with the error
 .BR EINTR .
 In addition, if
 .I remain

Cheers,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2010-08-29  4:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12  5:59 incorrect clock_nanosleep.2 Yuri Kozlov
     [not found] ` <20100812095939.13c8ab26-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org>
2010-08-29  4:32   ` Michael Kerrisk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinvx7UN_Fx2YB-0sqV7PLpm2Y-uiSrdbiufkqRG@mail.gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=yuray-YPGtXv8QU+00kPtPmH8OGQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).