* incorrect clock_nanosleep.2 @ 2010-08-12 5:59 Yuri Kozlov [not found] ` <20100812095939.13c8ab26-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Yuri Kozlov @ 2010-08-12 5:59 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA 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 ? -- Best Regards, Yuri Kozlov -- 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <20100812095939.13c8ab26-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org>]
* Re: incorrect clock_nanosleep.2 [not found] ` <20100812095939.13c8ab26-CpVCSV+zb/Ftei/ch0jEm2ZHpeb/A1Y/@public.gmane.org> @ 2010-08-29 4:32 ` Michael Kerrisk 0 siblings, 0 replies; 2+ messages in thread From: Michael Kerrisk @ 2010-08-29 4:32 UTC (permalink / raw) To: Yuri Kozlov; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-29 4:32 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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).