FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-41675: Modernize siginterrupt calls by pablogsal · Pull Request #22028 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .c  (1) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
fixup! bpo-41675: Modernize siginterrupt calls
  • Loading branch information
pablogsal committed Sep 2, 2020
commit 34ad2cd627f613436b3f99deb10cebdff070c411
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
The implementation of :func:`signal.siginterrupt` now uses
:c:func:`sigaction` instead of the deprecated :c:func:`siginterrupt`. Patch
by Pablo Galindo.
The implementation of :func:`signal.siginterrupt` now uses :c:func:`sigaction`
(if it is available in the system) instead of the deprecated :c:func:`siginterrupt`.
Patch by Pablo Galindo.
4 changes: 2 additions & 2 deletions Modules/signalmodule.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,9 @@ signal_siginterrupt_impl(PyObject *module, int signalnum, int flag)
else {
act.sa_flags |= SA_RESTART;
}
if (sigaction(signalnum, &act, NULL)<0) {
if (sigaction(signalnum, &act, NULL) < 0) {
#else
if (siginterrupt(signalnum, flag)<0) {
if (siginterrupt(signalnum, flag) < 0) {
#endif
PyErr_SetFromErrno(PyExc_OSError);
return NULL;
Expand Down

Back | FazBrowse Home | New Git URL