summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30058: Fixed buffer overflow in select.kqueue.control(). (#1095)Serhiy Storchaka2017-10-121-16/+13
|
* bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096)Serhiy Storchaka2017-04-191-2/+2
| | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate.
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-2/+2
|
* bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501)Serhiy Storchaka2017-03-121-4/+4
| | | FreeBSD is the only platforms with unsigned FD_SETSIZE.
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-6/+3
| | | | possible. Patch is writen with Coccinelle.
* Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵Serhiy Storchaka2016-12-161-1/+1
| | | | dict.
* Issue #20100: Simplify newPyEpoll_Object()Berker Peksag2016-09-261-8/+10
| | | | | | EPOLL_CLOEXEC is the only value that can be passed to epoll_create1() and we are passing EPOLL_CLOEXEC unconditionally since Python 3.4.
* Issue #28153: Make kqueue()'s event filters optionalBerker Peksag2016-09-141-0/+18
| | | | Patch by Ed Schouten.
* replace Py_(u)intptr_t with the c99 standard typesBenjamin Peterson2016-09-061-2/+2
|
* Expose EPOLLRDHUP conditionallyBerker Peksag2016-08-081-0/+3
|
* Issue #27567: Expose the POLLRDHUP constant in the select moduleBerker Peksag2016-07-191-0/+8
|
* add EPOLLEXCLUSIVEBenjamin Peterson2016-07-191-0/+3
|
* expose EPOLLRDHUP (closes #27567)Benjamin Peterson2016-07-191-1/+1
|
* merge from 3.5Senthil Kumaran2016-05-151-1/+1
|\ | | | | | | issue27018 - Fix the documentation of select.epoll.register method.
| * issue27018 - Fix the documentation of select.epoll.register method.Senthil Kumaran2016-05-151-1/+1
| |
* | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-171-1/+1
|\ \ | |/ | | | | messages.
* | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-1/+1
|/
* merge 3.4 (#25371)Benjamin Peterson2015-10-111-2/+2
|\
| * add a missing comma (closes #25371)Benjamin Peterson2015-10-111-2/+2
| |
* | Issue #23652: Merge with 3.4Zachary Ware2015-08-021-0/+11
|\ \ | |/
| * Issue #23652: Make the select module compile against LSB headers.Zachary Ware2015-08-021-0/+11
| | | | | | | | Patch by Matt Frank.
* | Issue #23485: select.devpoll.poll() is now retried when interrupted by a signalVictor Stinner2015-03-311-43/+63
| |
* | Issue #23485: select.kqueue.control() is now retried when interrupted by a ↵Victor Stinner2015-03-311-11/+34
| | | | | | | | signal
* | Issue #23485: select.epoll.poll() is now retried when interrupted by a signalVictor Stinner2015-03-301-18/+51
| |
* | Issue #23485: select.poll.poll() is now retried when interrupted by a signalVictor Stinner2015-03-301-50/+83
| |
* | Issue #23485: select.select() is now retried automatically with the recomputedVictor Stinner2015-03-301-14/+39
| | | | | | | | | | | | | | | | | | timeout when interrupted by a signal, except if the signal handler raises an exception. This change is part of the PEP 475. The asyncore and selectors module doesn't catch the InterruptedError exception anymore when calling select.select(), since this function should not raise InterruptedError anymore.
* | Issue #22117: Replace usage of _PyTime_ROUND_UP with _PyTime_ROUND_CEILINGVictor Stinner2015-03-301-3/+4
| | | | | | | | | | All these functions only accept positive timeouts, so this change has no effect in practice.
* | Issue #22117: Use the new _PyTime_t API in the select moduleVictor Stinner2015-03-281-39/+20
| |
* | Issue #23708: select.devpoll now retries its internal write() when interruptedVictor Stinner2015-03-191-7/+3
| | | | | | | | | | | | by a signal (EINTR). Modify devpoll_flush() to use _Py_write() instead of calling directly write().
* | Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-171-8/+3
|/ | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held
* Issue #20656: Restore explicit downcast in select_select().Victor Stinner2014-02-181-1/+2
| | | | Cast from time_t (64 bit) to long (32 bit). It should fix a compiler warning.
* Close #20656: Fix select.select() on OpenBSD 64-bitVictor Stinner2014-02-181-10/+12
|
* Issue #20320: select.select() and select.kqueue.control() now round the timeoutVictor Stinner2014-02-161-4/+6
| | | | | | aways from zero, instead of rounding towards zero. It should make test_asyncio more reliable, especially test_timeout_rounding() test.
* Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
|\
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
| |
* | Issue #20452: select and selectors round (again) timeout away from zero forVictor Stinner2014-01-311-1/+3
| | | | | | | | | | | | poll and epoll Improve also debug info to analyze the issue
* | (Merge 3.3) Issue #20311: Revert 033137c12d88 (02f9db3e684e),Victor Stinner2014-01-251-3/+1
|\ \ | |/ | | | | select.epoll.poll() rounds again the timeout towards zero
| * Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeoutVictor Stinner2014-01-251-3/+1
| | | | | | | | towards zero
* | (Merge 3.3) Issue #20311: select.epoll.poll() now rounds the timeout away fromVictor Stinner2014-01-211-1/+3
|\ \ | |/ | | | | | | | | 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.
| * Issue #20311: select.epoll.poll() now rounds the timeout away from zero,Victor Stinner2014-01-211-1/+3
| | | | | | | | | | instead of rounding towards zero. For example, a timeout of one microsecond is now rounded to one millisecond, instead of being rounded to zero.
* | Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-14/+11
| |
* | Issue #17919: Fixed integer overflow in the eventmask parameter.Serhiy Storchaka2013-12-141-11/+29
|\ \ | |/
| * Issue #17919: Fixed integer overflow in the eventmask parameter.Serhiy Storchaka2013-12-141-11/+29
| |
* | Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.Serhiy Storchaka2013-12-131-3/+2
|\ \ | |/
| * Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.Serhiy Storchaka2013-12-131-3/+2
| |
* | Fix indentation of switch cases.Guido van Rossum2013-12-071-11/+11
| |
* | Issue #19437: Fix select.epoll.poll(), fix code handling PyMem_New() errorVictor Stinner2013-10-301-1/+0
| | | | | | | | The bug was introduced with the select.epoll module! So it's 5 years old :-)
* | select.epoll.fromfd(fd) must be not change the inheritable flag of the fileVictor Stinner2013-08-281-1/+1
| | | | | | | | descriptor
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-2/+17
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Issue #11973: Fix a problem in kevent. The flags and fflags fields are nowChristian Heimes2013-08-251-1/+1
|\ \ | |/ | | | | properly handled as unsigned.