summaryrefslogtreecommitdiffstats
path: root/Doc/library/signal.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)Christian Heimes2022-08-021-0/+3
| | | | | | Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Michael Droettboom <mdboom@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95415: Make availability directive consistent (GH-95416)Christian Heimes2022-07-291-21/+35
|
* gh-93675: Fix typos in `Doc/` (GH-93676)luzpaz2022-06-211-1/+1
| | | Closes #93675
* gh-93851: Fix all broken links in Doc/ (GH-93853)Oleg Iarygin2022-06-211-1/+1
|
* gh-64783: Fix signal.NSIG value on FreeBSD (#91929)Victor Stinner2022-04-251-0/+1
| | | | | | | | | Fix signal.NSIG value on FreeBSD to accept signal numbers greater than 32, like signal.SIGRTMIN and signal.SIGRTMAX. * Add Py_NSIG constant. * Add pycore_signal.h internal header file. * _Py_Sigset_Converter() now includes the range of valid signals in the error message.
* Fix awkward sentence in signal docs (#91508)AJ Jordan2022-04-201-4/+5
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-42340: Document issues around KeyboardInterrupt (GH-23255)benfogle2022-03-291-0/+70
| | | | | | Update documentation to note that in some circumstances, KeyboardInterrupt may cause code to enter an inconsistent state. Also document sample workaround to avoid KeyboardInterrupt, if needed.
* bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)Gareth Rees2021-12-131-0/+10
|
* bpo-28206: Document signals Handlers, Sigmasks and Signals enums (GH-28628)Bibo-Joshi2021-10-041-5/+30
| | | Co-authored-by: desbma <desbma@users.noreply.github.com>
* 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.