Make setting affinity optional.

pull/607/head
David Wilson 6 years ago
parent 9035884c77
commit 0f63ca4c68

@ -226,9 +226,10 @@ def _setup_responder(responder):
)
def common_setup(_init_logging=True):
def common_setup(enable_affinity=True, _init_logging=True):
save_pid('controller')
ansible_mitogen.logging.set_process_name('top')
if enable_affinity:
ansible_mitogen.affinity.policy.assign_controller()
mitogen.utils.setup_gil()

Loading…
Cancel
Save