Gregory P. Smith <g...@krypto.org> added the comment: Yes I'd do it in PyOS_AfterFork. Simpler patch based on gdb's attached.
This could also use a test but as it involves signals and race conditions, making a deterministic test for this is difficult as it. If we added testing hooks to the python interpreter internals to allow test code to do things like set the signal tripped flags directly it's be much easier. ---------- keywords: +needs review Added file: http://bugs.python.org/file20252/issue9535-clear_signals_afterfork-gps01.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com