summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20320: select.select() and select.kqueue.control() now round the timeoutVictor Stinner2014-02-161-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-6/+3
|\
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-6/+3
| |
* | 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-3/+11
|\ \ | |/ | | | | interpreter shutdown.
| * Issue #14173: Avoid crashing when reading a signal handler during ↵Antoine Pitrou2013-05-041-3/+11
| | | | | | | | interpreter shutdown.
* | Merge.Richard Oudkerk2013-04-171-1/+5
|\ \ | |/
| * - 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 #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-1/+4
|\ \ | |/
| * Issue #4591: Uid and gid values larger than 2**31 are supported now.Serhiy Storchaka2013-02-101-1/+4
| |
* | Issue #17098: all modules should have __loader__Brett Cannon2013-02-011-2/+1
|\ \ | |/
| * Issue #17098: Make sure every module has __loader__ defined.Brett Cannon2013-02-011-2/+1
| | | | | | | | Thanks to Thomas Heller for the bug report.
* | merge 3.3Benjamin Peterson2013-01-181-1/+1
|\ \ | |/
| * 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-111-0/+16
|\ \ | |/ | | | | yet handled by Python to not persist after os.fork() in the child process.
| * Fixes issue #9535: Fix pending signals that have been received but notGregory P. Smith2012-11-111-0/+16
| |\ | | | | | | | | | yet handled by Python to not persist after os.fork() in the child process.
| | * Fixes issue #9535: Fix pending signals that have been received but notGregory P. Smith2012-11-111-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 #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.
* | Merge.Charles-François Natali2012-02-021-1/+3
|\ \ | |/
| * Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fixCharles-François Natali2012-02-021-1/+3
| | | | | | | | | | 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-091-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.
| * (Merge 3.1) 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 #12060: Use sig_atomic_t type and volatile keyword in the signal module.Victor Stinner2011-05-151-3/+3
| | | | | | | | | | | | 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.
* | | Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to theVictor Stinner2011-05-071-2/+100
| | | | | | | | | | | | signal module.
* | | Issue #8407: signal.pthread_sigmask() returns a set instead of a listVictor Stinner2011-05-041-26/+35
| | | | | | | | | | | | Update the doc. Refactor also related tests.
* | | Issue #8407: pthread_sigmask() checks immediatly if signal handlers have beenVictor Stinner2011-05-031-0/+4
| | | | | | | | | | | | | | | | | | called. The test checks that SIG_UNBLOCK calls immediatly the signal handler of the pending SIGUSR1. Improve also the tests using an exception (division by zero) instead of a flag (a function attribute).
* | | cleanup signalmodule.c: use PyModule_AddIntMacro()Victor Stinner2011-05-021-14/+6
| | |
* | | Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetchVictor Stinner2011-04-301-1/+138
|/ / | | | | | | | | | | | | | | | | and/or change the signal mask of the calling thread. Fix also tests of test_io using threads and an alarm: use pthread_sigmask() to ensure that the SIGALRM signal is received by the main thread. Original patch written by Jean-Paul Calderone.
* | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*Antoine Pitrou2011-04-271-0/+1
| | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali.
* | (Merge 3.1) Issue #11768: The signal handler of the signal module only callsVictor Stinner2011-04-181-10/+16
|\ \ | |/ | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
| * Issue #11768: The signal handler of the signal module only callsVictor Stinner2011-04-181-10/+16
| | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
| * Merged revisions 86214 via svnmerge fromAntoine Pitrou2010-11-051-14/+20
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86214 | antoine.pitrou | 2010-11-05 20:47:27 +0100 (ven., 05 nov. 2010) | 4 lines Issue #10311: The signal module now restores errno before returning from its low-level signal handler. Patch by Hallvard B Furuseth. ........
| * Merged revisions 85140 via svnmerge fromBrian Curtin2010-10-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85140 | brian.curtin | 2010-10-01 09:49:24 -0500 (Fri, 01 Oct 2010) | 4 lines Fix #10003. Add SIGBREAK to the set of valid signals on Windows. This fixes a regression noticed by bzr, introduced by issue #9324. ........
| * Merged revisions 84556 via svnmerge fromBrian Curtin2010-09-061-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84556 | brian.curtin | 2010-09-06 11:04:10 -0500 (Mon, 06 Sep 2010) | 7 lines Clean up the fix to #9324 with some of the suggestions raised on python-dev in response to the original checkin. Move the validation from the original loop into a switch statement, and adjust a platform check in the tests. ........
| * Include Windows.h for BOOL. 2.7 and 3.2 already had this due toBrian Curtin2010-08-061-0/+3
| | | | | | | | a feature 3.1 doesn't have. Followup to #9324.
| * Merged revisions 83763 via svnmerge fromBrian Curtin2010-08-061-0/+15
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83763 | brian.curtin | 2010-08-06 14:27:32 -0500 (Fri, 06 Aug 2010) | 3 lines Fix #9324: Add parameter validation to signal.signal on Windows in order to prevent crashes. ........
| * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-430/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
| * Merged revisions 81016 via svnmerge fromJean-Paul Calderone2010-05-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81016 | jean-paul.calderone | 2010-05-08 23:18:57 -0400 (Sat, 08 May 2010) | 9 lines Merged revisions 81007 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81007 | jean-paul.calderone | 2010-05-08 16:06:02 -0400 (Sat, 08 May 2010) | 1 line Skip signal handler re-installation if it is not necessary. Issue 8354. ........ ................
| * Merged revisions 74745 via svnmerge fromBenjamin Peterson2009-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r74745 | benjamin.peterson | 2009-09-11 17:24:02 -0500 (Fri, 11 Sep 2009) | 98 lines Merged revisions 74277,74321,74323,74326,74355,74465,74467,74488,74492,74513,74531,74549,74553,74625,74632,74643-74644,74647,74652,74666,74671,74727,74739 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74277 | sean.reifschneider | 2009-08-01 18:54:55 -0500 (Sat, 01 Aug 2009) | 3 lines - Issue #6624: yArg_ParseTuple with "s" format when parsing argument with NUL: Bogus TypeError detail string. ........ r74321 | guilherme.polo | 2009-08-05 11:51:41 -0500 (Wed, 05 Aug 2009) | 1 line Easier reference to find (at least while svn continues being used). ........ r74323 | guilherme.polo | 2009-08-05 18:48:26 -0500 (Wed, 05 Aug 2009) | 1 line Typo. ........ r74326 | jesse.noller | 2009-08-05 21:05:56 -0500 (Wed, 05 Aug 2009) | 1 line Fix issue 4660: spurious task_done errors in multiprocessing, remove doc note for from_address ........ r74355 | gregory.p.smith | 2009-08-12 12:02:37 -0500 (Wed, 12 Aug 2009) | 2 lines comment typo fix ........ r74465 | vinay.sajip | 2009-08-15 18:23:12 -0500 (Sat, 15 Aug 2009) | 1 line Added section on logging to one file from multiple processes. ........ r74467 | vinay.sajip | 2009-08-15 18:34:47 -0500 (Sat, 15 Aug 2009) | 1 line Refined section on logging to one file from multiple processes. ........ r74488 | vinay.sajip | 2009-08-17 08:14:37 -0500 (Mon, 17 Aug 2009) | 1 line Further refined section on logging to one file from multiple processes. ........ r74492 | r.david.murray | 2009-08-17 14:26:49 -0500 (Mon, 17 Aug 2009) | 2 lines Issue 6685: 'toupper' -> 'upper' in cgi doc example explanation. ........ r74513 | skip.montanaro | 2009-08-18 09:37:52 -0500 (Tue, 18 Aug 2009) | 1 line missing module ref (issue6723) ........ r74531 | vinay.sajip | 2009-08-20 17:04:32 -0500 (Thu, 20 Aug 2009) | 1 line Added section on exceptions raised during logging. ........ r74549 | benjamin.peterson | 2009-08-24 12:42:36 -0500 (Mon, 24 Aug 2009) | 1 line fix pdf building by teaching latex the right encoding package ........ r74553 | r.david.murray | 2009-08-26 20:04:59 -0500 (Wed, 26 Aug 2009) | 2 lines Remove leftover text from end of sentence. ........ r74625 | benjamin.peterson | 2009-09-01 17:27:57 -0500 (Tue, 01 Sep 2009) | 1 line remove the check that classmethod's argument is a callable ........ r74632 | georg.brandl | 2009-09-03 02:27:26 -0500 (Thu, 03 Sep 2009) | 1 line #6828: fix wrongly highlighted blocks. ........ r74643 | georg.brandl | 2009-09-04 01:59:20 -0500 (Fri, 04 Sep 2009) | 2 lines Issue #2666: Handle BROWSER environment variable properly for unknown browser names in the webbrowser module. ........ r74644 | georg.brandl | 2009-09-04 02:55:14 -0500 (Fri, 04 Sep 2009) | 1 line #5047: remove Monterey support from configure. ........ r74647 | georg.brandl | 2009-09-04 03:17:04 -0500 (Fri, 04 Sep 2009) | 2 lines Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments as documented. ........ r74652 | georg.brandl | 2009-09-04 06:25:37 -0500 (Fri, 04 Sep 2009) | 1 line #6756: add some info about the "acct" parameter. ........ r74666 | georg.brandl | 2009-09-05 04:04:09 -0500 (Sat, 05 Sep 2009) | 1 line #6841: remove duplicated word. ........ r74671 | georg.brandl | 2009-09-05 11:47:17 -0500 (Sat, 05 Sep 2009) | 1 line #6843: add link from filterwarnings to where the meaning of the arguments is covered. ........ r74727 | benjamin.peterson | 2009-09-08 18:04:22 -0500 (Tue, 08 Sep 2009) | 1 line #6865 fix ref counting in initialization of pwd module ........ r74739 | georg.brandl | 2009-09-11 02:55:20 -0500 (Fri, 11 Sep 2009) | 1 line Move function back to its section. ........ ................