Skip to content
Snippets Groups Projects
Commit 887edff2 authored by Ubuntu's avatar Ubuntu
Browse files

Revert "don't wait on the control socket. This might introduce a race, on the...

Revert "don't wait on the control socket. This might introduce a race, on the other hand I've been experiencing hangs"

This reverts commit 21772750.
parent 08a13d46
No related branches found
No related tags found
No related merge requests found
......@@ -94,11 +94,11 @@ class Ssh:
env['SSH_AUTH_SOCK'] = sess.socket
logger.debug("socket not found, starting new master")
ctrl_p = subprocess.Popen(sshcmd,
stdout=None, stderr=None,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=None,
env=env)
logger.debug("master spawned, attempt communicate")
#stdout, stderr = ctrl_p.communicate()
stdout, stderr = ctrl_p.communicate()
logger.debug('communicate on the control port complete')
sess.pids.append(ctrl_p.pid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment