summaryrefslogtreecommitdiffstats
path: root/Doc/library/signal.rst
Commit message (Collapse)AuthorAgeFilesLines
* Fix wrong availability for signal.SIGCHLD (#23285)Zhang Maiyun2020-11-201-1/+1
| | | I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
* Doc: Fix broken manpage link (GH-21937)Tim Burke2020-09-151-1/+1
| | | sigprocmask is in section 2, not 3.
* Document most common signals (GH-19245)Victor Stinner2020-03-311-0/+106
| | | | Document individual signals (only the most common signals): description, default action, availability.
* bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter (GH-19087)Victor Stinner2020-03-201-5/+7
| | | | | | | | | COMPUTE_EVAL_BREAKER() now also checks if the Python thread state belongs to the main interpreter. Don't break the evaluation loop if there are pending signals but the Python thread state it belongs to a subinterpeter. * Add _Py_IsMainThread() function. * Add _Py_ThreadCanHandleSignals() function.
* bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, ↵Saiyang Gou2020-02-131-0/+2
| | | | `resource`, `shutil`, `signal`, `syslog` (GH-18407)
* closes bpo-38712: Add signal.pidfd_send_signal. (GH-17070)Benjamin Peterson2019-11-201-0/+13
| | | | | | | | This exposes a Linux-specific syscall for sending a signal to a process identified by a file descriptor rather than a pid. For simplicity, we don't support the siginfo_t parameter to the syscall. This parameter allows implementing a pidfd version of rt_sigqueueinfo(2), which Python also doesn't support.
* Improve signal documentation (GH-14274)Géry Ogam2019-08-061-20/+22
| | | | * add a missing ``.. availability::`` reST explicit markup; * more consistent "see man page" sentences.
* bpo-28795: Signal documentation: Fix misleading statement. (GH-13121)Julien Palard2019-05-071-1/+2
|
* bpo-35568: add 'raise_signal' function (GH-11335)Vladimir Matveev2019-01-081-0/+7
| | | | | | As in title, expose C `raise` function as `raise_function` in `signal` module. Also drop existing `raise_signal` in `_testcapi` module and replace all usages with new function. https://bugs.python.org/issue35568
* bpo-11233: Create availability directive for documentation (GH-9692)Cheryl Sabella2018-10-121-19/+26
| | | | | | Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org>
* Warn not to set SIGPIPE to SIG_DFL (#6773)Alfred Perlstein2018-08-171-0/+34
|
* bpo-33332: Add signal.valid_signals() (GH-6581)Antoine Pitrou2018-05-041-2/+11
|
* signal: add strsignal() (#6017)Antoine Pietri2018-03-121-0/+9
| | | Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com>
* bpo-30050: Allow disabling full buffer warnings in signal.set_wakeup_fd (#4792)Nathaniel J. Smith2017-12-181-4/+24
|
* bpo-30807: signal.setitimer() now uses _PyTime API (GH-3865)Victor Stinner2017-10-131-3/+4
| | | | | | The _PyTime API handles detects overflow and is well tested. Document that the signal will only be sent once if internal is equal to zero.
* Mention how to disable signal fd wakeup (#2140)Antoine Pitrou2017-06-131-2/+4
|
* Issue #28738: Document SIGBREAK as an acceptable value on WindowsBerker Peksag2016-11-251-2/+3
| | | | Patch by Wojtek Ruszczewski.
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+1
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #21382: Clarify signal.signal() documentation on WindowsBerker Peksag2016-04-231-0/+3
| | | | | | | | All signal.SIG* constants may not be defined on Windows so a call like signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1)) will raise an AttributeError.
* Issue #14456: Remove contradiction about blocking signals from bad mergeMartin Panter2016-04-111-3/+0
|
* Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similarMartin Panter2016-02-101-1/+1
| | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear.
* Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
|\ | | | | | | Fixed the case of the "Ctrl-" prefixes.
| * Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
| | | | | | | | Fixed the case of the "Ctrl-" prefixes.
* | Issue #20182: converted the signal module to use Argument ClinicTal Einat2015-05-161-6/+6
| |
* | What's New in Python 3.5, PEP 475: mention modified signal functionsVictor Stinner2015-03-311-2/+2
| |
* | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retriedVictor Stinner2015-03-201-0/+10
| | | | | | | | | | | | | | | | | | | | 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 #22018: On Windows, signal.set_wakeup_fd() now also supports sockets.Victor Stinner2014-07-291-0/+3
| | | | | | | | 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-5/+0
| |
* | tetsVictor Stinner2014-07-241-0/+5
| |
* | fix #21076: turn signal module constants into enumsGiampaolo Rodola'2014-04-041-0/+10
|/
* Closes #1215: document better why it is not a good idea to catch e.g. ↵Georg Brandl2013-10-061-1/+5
| | | | | | SIGSEGV and refer to faulthandler. Patch by Martin Pool.
* Fix formattingAntoine Pitrou2012-03-311-7/+7
|
* Issue #14456: improve documentation of the signal module w.r.t. threads.Antoine Pitrou2012-03-311-42/+65
|\
| * Issue #14456: improve documentation of the signal module w.r.t. threads.Antoine Pitrou2012-03-311-40/+52
| |
* | Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tupleVictor Stinner2012-03-021-5/+4
| | | | | | | | Add a private API to convert an int or float to a C timespec structure.
* | Mention InterruptedError in the doc for new function signal.sigwaitinfoAntoine Pitrou2011-10-231-2/+2
| |
* | Fix some mentions of IOErrorAntoine Pitrou2011-10-121-2/+6
| |
* | Issue #12303: Add sigwaitinfo() and sigtimedwait() to the signal module.Ross Lagerwall2011-06-251-2/+43
| |
* | Close #12028: Make threading._get_ident() public, rename it toVictor Stinner2011-05-301-4/+3
| | | | | | | | | | threading.get_ident() and document it. This function was used by _thread.get_ident().
* | Issue #8407: The signal handler writes the signal number as a single byteVictor Stinner2011-05-081-3/+7
| | | | | | | | | | 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-0/+53
| | | | | | | | signal module.
* | Issue #8407: signal.pthread_sigmask() returns a set instead of a listVictor Stinner2011-05-041-3/+4
| | | | | | | | Update the doc. Refactor also related tests.
* | Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetchVictor Stinner2011-04-301-3/+50
|/ | | | | | | | | 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.
* Migrate to Sphinx 1.0 C language constructs.Georg Brandl2010-10-061-2/+2
|
* Fix #9324: Add parameter validation to signal.signal on Windows in orderBrian Curtin2010-08-061-0/+4
| | | | to prevent crashes.
* Issue #9524: Document that two CTRL* signals are meant for use onlyBrian Curtin2010-08-051-2/+6
| | | | with os.kill.
* Revert r82089. Commit was intended for a branch.Jean-Paul Calderone2010-06-191-78/+3
|
* merge forward from the python 2.x branchJean-Paul Calderone2010-06-191-3/+78
|
* Updated version numbers from 2.7 to 3.2Brian Curtin2010-04-201-2/+4
| | | | | | | | | | | Merged revisions 80265 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80265 | brian.curtin | 2010-04-20 10:23:18 -0500 (Tue, 20 Apr 2010) | 2 lines Add version info for os.kill and signal changes from #1220212. ........
* Port #1220212 (os.kill for Win32) to py3k.Brian Curtin2010-04-121-0/+14
|