New: epoll_wait has it wrong about timeout and EINTR
https://bugzilla.kernel.org/show_bug.cgi?id=66571
Bug ID: 66571
Summary: epoll_wait has it wrong about timeout and EINTR
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: low
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No
The epoll_wait(2) man page says:
"EINTR The call was interrupted by a signal handler before either any
of the requested events occurred or the timeout expired; see signal(7)."
Looking at the code of the kernel, EINTR is only returned when there is a pending signal. If the timeout expires, it will simply return without an error.
Simply removing the "or the timeout expired" part should be enough.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 66571] epoll_wait has it wrong about timeout and EINTR
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=66571
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |[email protected]
Resolution|--- |CODE_FIX--- Comment #1 from Michael Kerrisk <[email protected]> --- The problem is that the wording is a little ambiguous. The meaning is this:
EINTR The call was interrupted by a signal handler before either (1) any
of the requested events occurred or (2) the timeout expired; see signal(7).
I've updated the page to have the text as shown above.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html