From f8239015ec427a2b5e62afa8370885894483a356 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sun, 23 Sep 2012 14:21:22 -0700 Subject: [PATCH] Add additional Random.atfork() to prevent RNG errors in large runs Conflicts: paramiko/transport.py Was: ssh 41f4566 --- paramiko/transport.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paramiko/transport.py b/paramiko/transport.py index f41ad6f..7cbeeea 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1505,6 +1505,10 @@ class Transport (threading.Thread): # indefinitely, creating a GC cycle and not letting Transport ever be # GC'd. it's a bug in Thread.) + # Required to prevent RNG errors when running inside many subprocess + # containers. + Random.atfork() + # Hold reference to 'sys' so we can test sys.modules to detect # interpreter shutdown. self.sys = sys