summaryrefslogtreecommitdiffstats
path: root/Doc/library/signal.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-89414: Document that SIGCLD is not available on macOS (GH-113580) ↵Miss Islington (bot)2023-12-301-0/+2
| | | | | | | | | | (#113586) gh-89414: Document that SIGCLD is not available on macOS (GH-113580) Document that SIGCLD is not available on macOS (cherry picked from commit f48a1bcb2914addee971814fd014e4d8075ea6a9) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.11] gh-107091: Fix some uses of :const: role (GH-107379) (GH-107385)Miss Islington (bot)2023-07-281-1/+1
| | | | | | It is for references, not for literals. (cherry picked from commit 0aa58fa7a62cd0ee7ec27fa87122425aeff0467d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-106948: Docs: Disable links for C standard library functions, OS ↵Erlend E. Aasland2023-07-231-1/+1
| | | | | | | utility functions and system calls (#107062) (#107157) (cherry picked from commit b447e19e720e6781025432a40eb72b1cc93ac944) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-85073: Add some missing links to source (GH-99363) (#99586)Miss Islington (bot)2022-11-251-0/+2
| | | | | | | | gh-85073: Add some missing links to source (GH-99363) Add some missing links to source from Python docs (cherry picked from commit 27d8dc2c9d3de886a884f79f0621d4586c0e0f7a) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.11] gh-98930: improve the docstring of signal.strsignal (GH-99290) (#99449)Gregory P. Smith2022-11-131-3/+3
| | | | | | | | | | Improves the docstring on signal.strsignal to make it explain when it returns a message, None, or when it raises ValueError. Closes GH-98930 Co-authored-by: Gregory P. Smith <greg@krypto.org>. (cherry picked from commit 88385b856490a5ce3c99160bde6050638f81f72e) Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
* gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)Miss Islington (bot)2022-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> (cherry picked from commit e3b6ff19aaa318a813130ba9ad2ab0a332f27feb) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-95415: Make availability directive consistent (GH-95416) (GH-95438)Christian Heimes2022-08-011-21/+35
| | | Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94079)Łukasz Langa2022-06-211-1/+1
| | | | | | Closes GH-93675 (cherry picked from commit 830513754d081619b2d72db17770627312072fa5) Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
* gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94076)Miss Islington (bot)2022-06-211-1/+1
| | | | | (cherry picked from commit f62ff97f31a775cc7956adeae32c14e7c85bdc15) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* 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
| |