[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

STINNER Victor report at bugs.python.org
Wed Apr 25 19:02:00 CEST 2012


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

mp_resource_sharer_stop.patch: you should add a timeout argument to stop() instead of hardcoding a timeout of 5 seconds. It is maybe safer to block until the thread exits by default (so timeout=None by default).

For the new method: it may be nice to document it. Having to import resource_sharer from multiprocessing.reduction is maybe not the best possible API :-/

+        from multiprocessing.reduction import resource_sharer
+        resource_sharer.stop()

> Also, applicative code could be affected.

What is the effect of the patch? For example, on CTRL+c? I don't know the multiprocessing module nor this "resource sharer" thread.

----------

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


More information about the Python-bugs-list mailing list