summaryrefslogtreecommitdiff
path: root/Modules/signalmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | macro Py_SETREF.
* Fixed compilation error in signalmodule.c (issue #20182).Serhiy Storchaka2015-05-161-3/+3
|
* Issue #20182: converted the signal module to use Argument ClinicTal Einat2015-05-161-215/+246
|
* Issue #23836: Use _Py_write_noraise() to retry on EINTR in trip_signal() ofVictor Stinner2015-04-011-3/+4
| | | | signalmodule.c
* PEP 475: on EINTR, retry the function even if the timeout is equals to zeroVictor Stinner2015-03-301-1/+1
| | | | | | | | | Retry: * signal.sigtimedwait() * threading.Lock.acquire() * threading.RLock.acquire() * time.sleep()
* Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-7/+3
| | | | Add _Py_fstat_noraise() function when a Python exception is not welcome.
* Issue #22117: Replace usage of _PyTime_ROUND_UP with _PyTime_ROUND_CEILINGVictor Stinner2015-03-301-1/+2
| | | | | All these functions only accept positive timeouts, so this change has no effect in practice.
* Issue #22117: The signal modules uses the new _PyTime_t APIVictor Stinner2015-03-271-14/+13
| | | | | * Add _PyTime_AsTimespec() * Add unit tests for _PyTime_AsTimespec()
* Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retriedVictor Stinner2015-03-201-26/+47
| | | | | | | | | | when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter.
* Issue #23524: Change back to using Windows errors for _Py_fstat instead of ↵Steve Dower2015-03-071-1/+1
| | | | the errno shim.
* Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵Steve Dower2015-02-211-4/+3
| | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
* Issue #23450: Fix signal.set_wakeup_fd() on WindowsVictor Stinner2015-02-121-11/+14
| | | | Detect integer overflow on the file descriptor of the socket on 64-bit Python.
* Issue #22869: Split pythonrun into two modulesNick Coghlan2014-11-201-1/+1
| | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags
* Issue #22042: signal.set_wakeup_fd(fd) now raises an exception if the fileVictor Stinner2014-08-271-1/+19
| | | | descriptor is in blocking mode.
* Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets.Victor Stinner2014-07-291-18/+165
| | | | A side effect is that Python depends to the WinSock library.
* Backout 42ced0d023cd: oops, i didn't want to push this changeset :-/Victor Stinner2014-07-241-136/+19
|
* tetsVictor Stinner2014-07-241-19/+136
|
* Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of aVictor Stinner2014-07-211-3/+11
| | | | ValueError on fstat() failure.
* merge along w/ fix for issue #2107 (commit c9239171e429)Brett Cannon2014-04-041-3/+3
|\
| * fix #21076: turn signal module constants into enumsGiampaolo Rodola'2014-04-041-2/+2
|/
* Issue #20320: select.select() and select.kqueue.control() now round the timeoutVictor Stinner2014-02-171-1/+2
| | | | | | 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-22/+22
|\
| * Issue #18774: Remove last bits of GNU PTH thread code, patch by Vajrasky Kok.Christian Heimes2013-08-181-12/+0
| |
| * Issue #16105: When a signal handler fails to write to the file descriptor ↵Antoine Pitrou2013-08-171-1/+17
| | | | | | | | registered with ``signal.set_wakeup_fd()``, report an exception instead of ignoring the error.
| * Issue #18520: Add a new PyStructSequence_InitType2() function, same thanVictor Stinner2013-07-221-3/+4
| | | | | | | | | | | | | | | | PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error
| * Issue #14173: Avoid crashing when reading a signal handler during ↵Antoine Pitrou2013-05-041-6/+1
| |\ | | | | | | | | | interpreter shutdown.
| | * Issue #17782: Fix undefined behaviour on platforms where ``struct ↵Antoine Pitrou2013-04-171-6/+1
| | |\ | | | | | | | | | | | | timespec``'s "tv_nsec" member is not a C long.
| | | * Issue #17591: Use lowercase filenames when including Windows header files.Antoine Pitrou2013-03-311-1/+1
| | | | | | | | | | | | | | | | Patch by Roumen Petrov.
| | | * Issue #4591: Uid and gid values larger than 2**31 are supported now.Serhiy Storchaka2013-02-101-5/+0
| | | |\
| | | | * Issue #17098: all modules should have __loader__Brett Cannon2013-02-011-2/+1
| | | | |\
| | | | * \ merge 3.3Benjamin Peterson2013-01-181-1/+1
| | | | |\ \
| | | | * \ \ Fixes issue #9535: Fix pending signals that have been received but notGregory P. Smith2012-11-101-0/+16
| | | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | yet handled by Python to not persist after os.fork() in the child process.
| | | | * | | | #16135: Removal of OS/2 support (Modules/*)Jesus Cea2012-10-051-5/+0
| | | | | | | |
* | | | | | | | Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-6/+3
|/ / / / / / /
* | | | | | | Issue #14173: Avoid crashing when reading a signal handler during ↵Antoine Pitrou2013-05-041-3/+11
|/ / / / / / | | | | | | | | | | | | | | | | | | interpreter shutdown.
* | | | | | - Issue #17782: Fix undefined behaviour on platforms where ``struct ↵Antoine Pitrou2013-04-171-1/+5
|/ / / / / | | | | | | | | | | | | | | | timespec``'s "tv_nsec" member is not a C long.
* | | | | Issue #4591: Uid and gid values larger than 2**31 are supported now.Serhiy Storchaka2013-02-101-1/+4
| |_|_|/ |/| | |
* | | | Issue #17098: Make sure every module has __loader__ defined.Brett Cannon2013-02-011-2/+1
| |_|/ |/| | | | | | | | Thanks to Thomas Heller for the bug report.
* | | check windows fd validity (closes #16992)Benjamin Peterson2013-01-181-1/+1
| |/ |/|
* | Fixes issue #9535: Fix pending signals that have been received but notGregory P. Smith2012-11-101-5/+434
|\ \ | |/ | | | | yet handled by Python to not persist after os.fork() in the child process.
| * Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tupleVictor Stinner2012-03-021-8/+3
| | | | | | | | Add a private API to convert an int or float to a C timespec structure.
| * Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fixCharles-François Natali2012-02-021-5/+439
| |\ | | | | | | | | | | | | a random deadlock when fork() is called in a multithreaded process in debug mode, and make PyOS_AfterFork() more robust.
| | * Issue #12328: Under Windows, refactor handling of Ctrl-C events andAntoine Pitrou2011-11-211-0/+36
| | | | | | | | | | | | | | | make _multiprocessing.win32.WaitForMultipleObjects interruptible when the wait_flag parameter is false. Patch by sbt.
| | * Issue #12303: Add sigwaitinfo() and sigtimedwait() to the signal module.Ross Lagerwall2011-06-251-1/+153
| | |
| | * Issue #8407: signal.sigwait() releases the GILVictor Stinner2011-06-101-0/+2
| | | | | | | | | | | | Initial patch by Charles-François Natali.
| | * Issue #8407: Fix the signal handler of the signal module: if it is calledVictor Stinner2011-05-251-4/+5
| | | | | | | | | | | | twice, it now writes the number of the second signal into the wakeup fd.
| | * (Merge 3.2) Issue #12060: Use sig_atomic_t type and volatile keyword in theVictor Stinner2011-05-151-3/+3
| | |\ | | | | | | | | | | | | signal module. Patch written by Charles-François Natali.
| | * | Issue #12011: signal.signal() and signal.siginterrupt() raise an OSError,Victor Stinner2011-05-101-2/+2
| | | | | | | | | | | | | | | | instead of a RuntimeError: OSError has an errno attribute.
| | * | Issue #8407: Use an explicit cast for FreeBSDVictor Stinner2011-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pthread_t is a pointer, not an integer, on FreeBSD. It should fix the following gcc warning: passing argument 1 of ‘pthread_kill’ makes pointer from integer without a cast
| | * | Issue #8407: The signal handler writes the signal number as a single byteVictor Stinner2011-05-081-2/+5
| | | | | | | | | | | | | | | | | | | | instead of a nul byte into the wakeup file descriptor. So it is possible to wait more than one signal and know which signals were raised.