[issue12310] Segfault in test_multiprocessing

Antoine Pitrou report at bugs.python.org
Sat Jun 11 18:12:39 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Less disruptive approach:

        old_process = _current_process
        _current_process = self
        try:
            util._finalizer_registry.clear()
            util._run_after_forkers()
        finally:
            del old_process

This will delay finalization of the old process object until after _run_after_forkers() is executed, without (hopefully) messing with semantics.

----------

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


More information about the Python-bugs-list mailing list