[issue12413] make faulthandler dump traceback of child processes

STINNER Victor report at bugs.python.org
Sun Jun 26 02:43:39 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> since all the processes receive the signal at the same time,
> their outputs will be interleaved (we could maybe add a random
> sleep before dumping the traceback?)

If we have the pid list of the children, we can use an arbitrary sleep (e.g. 1 second) before sending a signal to the next pid. Anyway, a sleep is the most reliable synchronization code after a crash/timeout.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12413>
_______________________________________


More information about the Python-bugs-list mailing list