| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
(#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>
|
|
|
|
|
|
| |
It is for references, not for literals.
(cherry picked from commit 0aa58fa7a62cd0ee7ec27fa87122425aeff0467d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
utility functions and system calls (#107062) (#107157)
(cherry picked from commit b447e19e720e6781025432a40eb72b1cc93ac944)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
| |
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
| |
Closes GH-93675
(cherry picked from commit 830513754d081619b2d72db17770627312072fa5)
Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit f62ff97f31a775cc7956adeae32c14e7c85bdc15)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Co-authored-by: desbma <desbma@users.noreply.github.com>
|
|
|
| |
I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
|
|
|
| |
sigprocmask is in section 2, not 3.
|
|
|
|
| |
Document individual signals (only the most common signals):
description, default action, availability.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
`resource`, `shutil`, `signal`, `syslog` (GH-18407)
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
* add a missing ``.. availability::`` reST explicit markup;
* more consistent "see man page" sentences.
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
Original patch by Georg Brandl.
Co-Authored-By: Georg Brandl <georg@python.org>
|
| |
|
| |
|
|
|
| |
Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com>
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Patch by Wojtek Ruszczewski.
|
|
|
|
|
| |
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
|
|\
| |
| |
| | |
Fixed the case of the "Ctrl-" prefixes.
|
| |
| |
| |
| | |
Fixed the case of the "Ctrl-" prefixes.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
A side effect is that Python depends to the WinSock library.
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
| |
SIGSEGV and refer to faulthandler.
Patch by Martin Pool.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Add a private API to convert an int or float to a C timespec structure.
|
| | |
|