2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-27 11:30:06 +00:00

Fix potential delay in ssh-agent start

Be consistent with other check_output
calls to allow eventlet to properly
background the process.
This commit is contained in:
Jarrod Johnson 2021-10-08 10:24:35 -04:00
parent 7ccaa245b6
commit deb5c2eed8

View File

@ -43,7 +43,7 @@ def assure_agent():
if agent_pid is None:
try:
agent_starting = True
sai = subprocess.check_output(['ssh-agent'])
sai = subprocess.check_output(['ssh-agent'], timeout=86400)
for line in sai.split(b'\n'):
if b';' not in line:
continue