[issue29828] Allow registering after-fork initializers in multiprocessing

Antoine Pitrou report at bugs.python.org
Mon May 22 04:47:08 EDT 2017


Antoine Pitrou added the comment:

> BTW, why can't you use `pthread_atfork` in numpy?

I suppose Numpy could use that, but it's much more involved than registering a Python-level callback.  Also it would only work because Numpy actually implements its random generator in C.

----------

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


More information about the Python-bugs-list mailing list