Victor Stinner
329e492570
Issue #20656 : Restore explicit downcast in select_select().
Cast from time_t (64 bit) to long (32 bit). It should fix a compiler warning.
12 years ago
Victor Stinner
5a8e5796f1
Close #20656 : Fix select.select() on OpenBSD 64-bit
12 years ago
Victor Stinner
3c1b379ebd
Issue #20320 : select.select() and select.kqueue.control() now round the timeout
aways from zero, instead of rounding towards zero.
It should make test_asyncio more reliable, especially test_timeout_rounding() test.
12 years ago
Serhiy Storchaka
505ff755d7
Issue #20437 : Fixed 21 potential bugs when deleting objects references.
12 years ago
Victor Stinner
dcd9740ad2
Issue #20452 : select and selectors round (again) timeout away from zero for
poll and epoll
Improve also debug info to analyze the issue
12 years ago
Victor Stinner
933209689e
Issue #20311 : Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
12 years ago
Georg Brandl
381c280815
#20311 : revert changes to 3.3 branch for now until experts have decided how to resolve the issue.
12 years ago
Victor Stinner
665486e0e7
Issue #20311 : select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
12 years ago
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
12 years ago
Serhiy Storchaka
5da107ac72
Issue #17919 : Fixed integer overflow in the eventmask parameter.
12 years ago
Serhiy Storchaka
3ad2d70947
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
12 years ago
Guido van Rossum
ee07b94788
Fix indentation of switch cases.
12 years ago
Victor Stinner
7613542a27
Issue #19437 : Fix select.epoll.poll(), fix code handling PyMem_New() error
The bug was introduced with the select.epoll module! So it's 5 years old :-)
12 years ago
Victor Stinner
d72fe89b80
select.epoll.fromfd(fd) must be not change the inheritable flag of the file
descriptor
13 years ago
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
13 years ago
Christian Heimes
f1fe159822
Issue #11973 : Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
13 years ago
Richard Oudkerk
a93bf7b9a6
Fix devpoll_dealloc().
13 years ago
Richard Oudkerk
168d59b669
Move definition of devpoll_internal_close() before devpoll_close().
13 years ago
Richard Oudkerk
069d65c35a
Fix compilation of select module on Solaris.
13 years ago
Victor Stinner
13423c3726
Close #18794 : Add a fileno() method and a closed attribute to select.devpoll
objects.
Add also tests on fileno() method and closed attribute of select.epoll and select.kqueue.
13 years ago
Serhiy Storchaka
b1973c252c
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
RuntimeError exception. Patch by Christian Schubert.
13 years ago
Victor Stinner
bbf8ce5b87
Issue #18408 : Fix select.select() to handle PyList_New() failure (MemoryError)
in set2list()
13 years ago
Charles-Francois Natali
74ca886788
Issue #17917 : Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.
13 years ago
Charles-Francois Natali
002a77d2f7
Issue #12181 : select module: Fix struct kevent definition on OpenBSD 64-bit
platforms. Patch by Federico Schwindt.
13 years ago
Charles-François Natali
986a56cefe
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
13 years ago
Charles-François Natali
a41cf29c0b
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
13 years ago
Serhiy Storchaka
74f49ab28b
Issue #15989 : Fix several occurrences of integer overflow
when result of PyInt_AsLong() or PyLong_AsLong() narrowed
to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
13 years ago
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
13 years ago
Serhiy Storchaka
7898043868
Issue #15989 : Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
13 years ago
Charles-François Natali
a6ebb2d7fb
Issue #16876 : Revert be8e6b81284e, which wasn't thread-safe: wait until a
solution is found for poll().
13 years ago
Charles-François Natali
f424f3856d
Issue #16876 : Optimize epoll.poll() by keeping a per-instance epoll events
buffer instead of allocating a new one at each poll().
13 years ago
Antoine Pitrou
09bb89b8cf
Issue #16488 : epoll() objects now support the `with` statement.
Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
0552fc2b8a
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
e4ad37e50e
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
13 years ago
Jesus Cea
14c81aba50
#16135 : Removal of OS/2 support (Modules/*)
13 years ago
Benjamin Peterson
6f3e5e48d3
remove useless and defined initialization ( closes #15921 )
14 years ago
Jesus Cea
62a5c3216d
Closes #15395 : memory leaks in selectmodule.c
14 years ago
Brett Cannon
8798ad3e1e
struct timeval.tv_usec is 4 bytes on 64-bit OS X as it should be, but
is defined as an int while everyone else expects a long regardless of
length.
14 years ago
Victor Stinner
b2a3773301
Issue #14180 : Fix the select module to handle correctly the Windows timeval
structure. timeval.tv_sec is a long on Windows, not time_t.
14 years ago
Victor Stinner
d528b01a71
Issue #14180 : Fix another typo in kqueue_queue_control()
14 years ago
Victor Stinner
d327f9de1f
Issue #14180 : Fix select.select() compilation on BSD and a typo in kqueue_queue_control()
14 years ago
Victor Stinner
5d272cc6a2
Close #14180 : Factorize code to convert a number of seconds to time_t, timeval or timespec
time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(),
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
raises an OverflowError, instead of a ValueError, if the timestamp does not fit
in time_t.
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
round microseconds towards zero instead of rounding to nearest with ties going
away from zero.
14 years ago
Benjamin Peterson
83251c1ecd
try to always use the old API
14 years ago
Benjamin Peterson
95c16629d3
fix for old kernels which don't have epoll_create1
14 years ago
Benjamin Peterson
2fb9ae9dfc
add a flags parameter to select.epoll
14 years ago
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
14 years ago
Antoine Pitrou
6b4883dec0
PEP 3151 / issue #12555 : reworking the OS and IO exception hierarchy.
14 years ago
Charles-François Natali
aa26b27503
Issue #12287 : Fix a stack corruption in ossaudiodev module when the FD is
greater than FD_SETSIZE.
15 years ago
Charles-François Natali
fda7b379ac
Issue #12287 : Fix a stack corruption in ossaudiodev module when the FD is
greater than FD_SETSIZE.
15 years ago
Senthil Kumaran
7d80bd1909
Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior.
15 years ago