[issue16500] Add an 'atfork' module

Dwayne Litzenberger report at bugs.python.org
Mon Oct 21 15:42:46 CEST 2013


Dwayne Litzenberger added the comment:

> The main question is whether a failed prepare callback should prevent the fork from happenning

Yes, I think an exception should prevent the fork from happening.

It's fail-safe for the PRNG case (you can guarantee that a fork won't occur without properly re-seeding a PRNG), and it makes bugs easier to catch in unit testing.

----------

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


More information about the Python-bugs-list mailing list