This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11895] New: pselect incorrecly handles small negative timeouts on old kernels
- From: "kostik at oktetlabs dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Aug 2010 07:54:39 -0000
- Subject: [Bug libc/11895] New: pselect incorrecly handles small negative timeouts on old kernels
- Reply-to: sourceware-bugzilla at sourceware dot org
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.