]> granicus.if.org Git - python/commit
bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state (#2417)
authorAntoine Pitrou <pitrou@free.fr>
Mon, 17 Jul 2017 10:25:19 +0000 (12:25 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2017 10:25:19 +0000 (12:25 +0200)
commit2c8a5e4c968217f9672340e520942c4ed788d8de
tree54a62a443b3ac1302ddb130ae8893467874325c2
parent68d663cf85d1ac5eaf83482eed39c0a6f8093601
bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state (#2417)

* 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
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