]> granicus.if.org Git - python/commit
bpo-30703: Improve signal delivery (#2415)
authorAntoine Pitrou <pitrou@free.fr>
Wed, 28 Jun 2017 21:29:29 +0000 (23:29 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2017 21:29:29 +0000 (23:29 +0200)
commitc08177a1ccad2ed0d50898c2731b518c631aed14
treec4f495928530cdffb077bb5bf0cd69d96626f71f
parent9f3bdcb643623e07497af2fc35f0496c2302f1be
bpo-30703: Improve signal delivery (#2415)

* Improve signal delivery

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

* Remove unused function

* Improve comments

* Add stress test

* Adapt for --without-threads

* Add second stress test

* Add NEWS blurb

* Address comments @haypo
Include/ceval.h
Lib/test/test_signal.py
Misc/NEWS.d/next/Core and Builtins/2017-06-28-21-07-32.bpo-30703.ULCdFp.rst [new file with mode: 0644]
Modules/signalmodule.c
Python/ceval.c