Skip to content

Commit

Permalink
ssh.py: use 'exec python -c' instead of just 'python -c'.
Browse files Browse the repository at this point in the history
This gets rid of an extra intermediate sh process on the server that we were
keeping for no good reason, since it would exit as soon as python exited
anyway.
  • Loading branch information
apenwarr committed May 3, 2011
1 parent c5834a9 commit 65b0390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
pycmd = "'%s' -c '%s'" % (python, pyscript)
else:
pycmd = ("P=python2; $P -V 2>/dev/null || P=python; "
"\"$P\" -c '%s'") % pyscript
"exec \"$P\" -c '%s'") % pyscript
argv = (sshl +
portl +
ipv6flag +
Expand Down

0 comments on commit 65b0390

Please sign in to comment.