]> granicus.if.org Git - python/commit
[3.6] bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state (GH-2417...
authorAntoine Pitrou <pitrou@free.fr>
Sun, 6 Aug 2017 17:32:39 +0000 (19:32 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Aug 2017 17:32:39 +0000 (19:32 +0200)
commit57e836cb41656ac23042886db6b5985c036a7ce2
treec547399159bab8f0ba8df3de64987375e3025a77
parent9cd0ef8f3b93818f0ee5318cb1fc9a1ea32e95b6
[3.6] bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state (GH-2417) (#3007)

* Improve signal delivery

Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions.

* Remove unused function

* Improve comments

* Use _Py_atomic API for concurrency-sensitive signal state

* Add blurb
(cherry picked from commit 2c8a5e4c968217f9672340e520942c4ed788d8de)
Misc/NEWS.d/next/Core and Builtins/2017-07-17-12-12-59.bpo-30808.bA3zOv.rst [new file with mode: 0644]
Modules/signalmodule.c