Christian Heimes added the comment:

Here is a patch that is based on Apache's mod_ssl code. mod_ssl perturbs the 
PRNG state more often but I think that's overkill for Python.

The new patch only affects the PRNG state of the child process. In my opinion 
it is the better way to solve this issue. The RAND API does some internal 
locking. Bad things might happen if one thread of a process calls fork() while 
another is in the middle of a locked RAND operation.

----------
Added file: http://bugs.python.org/file31340/openssl_prng_atfork3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18747>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to