mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #9241 from techhat/atfork
Re-init Crypto.Random.atfork() to prevent multiprocessing bugs
This commit is contained in:
commit
a315a8ea1c
@ -1664,6 +1664,9 @@ def run_parallel_map_providers_query(data):
|
||||
This function will be called from another process when building the
|
||||
providers map.
|
||||
'''
|
||||
import Crypto.Random
|
||||
Crypto.Random.atfork()
|
||||
|
||||
cloud = Cloud(data['opts'])
|
||||
try:
|
||||
with context.func_globals_inject(
|
||||
|
Loading…
Reference in New Issue
Block a user