[Python-checkins] [python/cpython] c08177: bpo-30703: Improve signal delivery (#2415)

GitHub noreply at github.com
Wed Jun 28 17:29:30 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: c08177a1ccad2ed0d50898c2731b518c631aed14
      https://github.com/python/cpython/commit/c08177a1ccad2ed0d50898c2731b518c631aed14
  Author: Antoine Pitrou <pitrou at free.fr>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M Include/ceval.h
    M Lib/test/test_signal.py
    A Misc/NEWS.d/next/Core and Builtins/2017-06-28-21-07-32.bpo-30703.ULCdFp.rst
    M Modules/signalmodule.c
    M Python/ceval.c

  Log Message:
  -----------
  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




More information about the Python-checkins mailing list