This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11895] New: pselect incorrecly handles small negative timeouts on old kernels


pselect() function in case pselect system call is not supported in the kernel
(<= 2.6.16 in accordance with the manual) emulates pselect with select().

For timeval convertation TIMESPEC_TO_TIMEVAL is used. However, it incorrectly
handles very small negatime timeouts:

(0, -1) is converted into (0, 0), so in case:

pselect (..., (0, -1), ...) --->>> -1 (EINVAL)

return is

pselect (..., (0, -1), ...) --->>> 0 (ENOSYS)

This far from being critical, but still.

-- 
           Summary: pselect incorrecly handles small negative timeouts on
                    old kernels
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: kostik at oktetlabs dot ru
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11895

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]