]> granicus.if.org Git - python/commit
Issue #23836: Fix the faulthandler module to handle reentrant calls
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 1 Apr 2015 16:48:58 +0000 (18:48 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 1 Apr 2015 16:48:58 +0000 (18:48 +0200)
commitc7489a5595293153205a20d77a667a0260b6e96d
tree1078f230d360dfbbb9596d64ed3e86f0fa957932
parent97f86b82b74244974212ff970010e2435dd10c0f
Issue #23836: Fix the faulthandler module to handle reentrant calls
to its signal handlers.

Use also _Py_write_noraise() instead of write() to retry write() if it is
interrupted by a signal (fail with EINTR).

faulthandler.dump_traceback() also calls PyErr_CheckSignals() to call the
Python signal handler if a signal was received.
Misc/NEWS
Modules/faulthandler.c