[Bugme-new] [Bug 33022] New: incorrect return value when calling select() on an epoll descriptor

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Sun Apr 10 20:05:38 PDT 2011


https://bugzilla.kernel.org/show_bug.cgi?id=33022

           Summary: incorrect return value when calling select() on an
                    epoll descriptor
           Product: IO/Storage
           Version: 2.5
    Kernel Version: Debian "squeeze" 2.6.32-5-amd64
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
        AssignedTo: io_other at kernel-bugs.osdl.org
        ReportedBy: mark at heily.com
        Regression: No


Created an attachment (id=54012)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=54012)
test case

The epoll(7) manpage states the following:

        Q3  Is the epoll file descriptor itself poll/epoll/selectable?

       A3  Yes.  If an epoll file descriptor has events waiting then  it  will
           indicate as being readable.

It appears that this functionality is broken. I have attached a testcase that
uses select() to test an epoll descriptor for readability. The return value of
select() is zero, even though the epoll descriptor has events waiting.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Bugme-new mailing list