◐ Shell
clean mode source ↗

bpo-30703: Improve signal delivery by pitrou · Pull Request #2415 · python/cpython

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

@pitrou pitrou changed the title Improve signal delivery bpo-30703: Improve signal delivery

Jun 26, 2017

vstinner

@pitrou

vstinner

@pitrou pitrou deleted the signal_delivery branch

June 28, 2017 21:29

pitrou added a commit to pitrou/cpython that referenced this pull request

Jul 1, 2017
* 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.
(cherry picked from commit c08177a)

pitrou added a commit that referenced this pull request

Jul 1, 2017
* [3.6] bpo-30703: Improve signal delivery (GH-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.
(cherry picked from commit c08177a)

* bpo-30796: Fix failures in signal delivery stress test (#2488)

* bpo-30796: Fix failures in signal delivery stress test

setitimer() can have a poor minimum resolution on some machines,
this would make the test reach its deadline (and a stray signal
could then kill a subsequent test).

* Make sure to clear the itimer after the test

@ma8ma ma8ma mentioned this pull request

Jul 5, 2017