summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-30807: signal.setitimer() may disable the timer by mistake ↵Antoine Pitrou2017-06-301-0/+4
| | | | | | | | (GH-2493) (#2499) * bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb. (cherry picked from commit 729780a810bbcb12b245a1b652302a601fc9f6fd)
* Issue #28139: Fix messed up indentationMartin Panter2016-09-171-13/+13
| | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-1/+1
| | | | in places where Py_DECREF was used.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
|
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | macro Py_SETREF.
* Issue #14173: Avoid crashing when reading a signal handler during ↵Antoine Pitrou2013-05-041-3/+11
| | | | interpreter shutdown.
* check windows fd validity (closes #16992)Benjamin Peterson2013-01-181-1/+1
|
* Fixes issue #9535: Fix pending signals that have been received but not yetGregory P. Smith2012-11-111-0/+16
| | | | handled by Python to not persist after os.fork() in the child process.
* 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 #13156: revert changeset f6feed6ec3f9, which was only relevant for nativeCharles-François Natali2011-10-121-1/+0
| | | | | | TLS implementations, and fails with the ad-hoc TLS implementation when a thread doesn't have an auto thread state (e.g. a thread created outside of Python calling into a subinterpreter).
* 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.
* 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. ........
* 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. ........
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-420/+420
|
* Skip signal handler re-installation if it is not necessary. Issue 8354.Jean-Paul Calderone2010-05-081-0/+5
|
* Implement #1220212. Add os.kill support for Windows.Brian Curtin2010-04-021-0/+13
| | | | | | | | | | | | | | os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events.
* #7706: add include guards where they're missing; required for Windows CEAndrew M. Kuchling2010-02-221-1/+6
|
* comment typo fixGregory P. Smith2009-08-121-1/+1
|
* Fixed a couple more C99 comments and one occurence of inline.Christian Heimes2008-10-021-1/+1
|
* Fix:Neal Norwitz2008-08-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * crashes on memory allocation failure found with failmalloc * memory leaks found with valgrind * compiler warnings in opt mode which would lead to invalid memory reads * problem using wrong name in decimal module reported by pychecker Update the valgrind suppressions file with new leaks that are small/one-time leaks we don't care about (ie, they are too hard to fix). TBR=barry TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes) in opt mode: valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \ -x test_logging test_ssl test_multiprocessing valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing for i in `seq 1 4000` ; do LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \ ./python -c pass done At least some of these fixes should probably be backported to 2.5.
* #1683 prevent forking from interfering in threading storageBenjamin Peterson2008-06-131-0/+1
| | | | This should prevent some test_multiprocessing failures
* Conditionalize sys/time.h inclusion.Martin v. Löwis2008-03-241-0/+2
|
* Patch #2240: Implement signal.setitimer and signal.getitimer.Martin v. Löwis2008-03-241-3/+149
|
* Issue 1089358. Adds the siginterrupt() function, that is just aFacundo Batista2008-02-231-0/+33
| | | | | | wrapper around the system call with the same name. Also added test cases, doc changes and NEWS entry. Thanks Jason and Ralf Schmitt.
* Patch #1583 by Adam Olsen.Guido van Rossum2007-12-191-1/+52
| | | | | | | This adds signal.set_wakeup_fd(fd) which sets a file descriptor to which a zero byte will be written whenever a C exception handler runs. I added a simple C API as well, PySignal_SetWakeupFd(fd).
* Patch #1643738 by Ulisses Furquim -- make the is_tripped variableGuido van Rossum2007-12-101-5/+26
| | | | | in signalmodule.c more robust. Includes Martin von Loewis's suggestion to set is_tripped after .tripped.
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-141-0/+1
| | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
* Patch #975056 - fixes for restartable signals on *BSD. In addition,Anthony Baxter2004-10-131-6/+0
| | | | a few remaining calls to signal() were converted to PyOS_setsig().
* silly typoMichael W. Hudson2004-06-171-1/+1
|
* Patch [ 776725 ] add SIGRTMIN, SIGRTMAX to signalmodule.cAnthony Baxter2003-07-311-0/+10
| | | | | Trivial patch, and the alternative is to guess at the right values based on platform...
* Take out my (long since disabled) POSIX signal mask handling code.Michael W. Hudson2003-03-131-171/+0
| | | | | I'm not going to have the time or energy to get this working x-platform -- anyone who does is welcome to the code!
* - PyEval_GetFrame() is now declared to return a PyFrameObject *Guido van Rossum2003-02-191-1/+1
| | | | instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* Patch #569753: Remove support for WIN16.Martin v. Löwis2002-06-301-1/+1
| | | | Rename all occurrences of MS_WIN32 to MS_WINDOWS.
* SF # 533070 Silence AIX C Compiler WarningsNeal Norwitz2002-06-131-1/+1
| | | | Warning caused by using &func. & is not necessary.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-19/+18
|
* This is patchMichael W. Hudson2002-05-271-0/+171
| | | | | | | [ 559250 ] more POSIX signal stuff Adds support (and docs and tests and autoconfery) for posix signal mask handling -- sigpending, sigprocmask and sigsuspend.
* Remove METH_OLDARGS:Neal Norwitz2002-03-311-7/+7
| | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke.
* Add type cast.Neil Schemenauer2002-03-281-1/+2
|
* Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-251-5/+2
|
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-1/+1
| | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
* Export SIGINFO. Fixes #502077.Martin v. Löwis2002-01-121-0/+5
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-4/+0
|
* SF patch [#466877] SIGBREAK is missing from signal module.Tim Peters2001-10-011-0/+5
| | | | Patch from Steve Scott to add SIGBREAK support (unique to Windows).
* Make more warnings go away on the SGI compiler.Fred Drake2001-07-191-1/+1
| | | | This is part of SF patch #424992.
* Document SIG_* warning causes on Solaris.Martin v. Löwis2001-03-061-0/+5
|