From ea1204841882b5c5fcfad2336d6cc700452729d5 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sun, 2 May 2010 01:30:40 -0400 Subject: [PATCH] ssh.py: use 'exec sshuttle' to get rid of the extra sh process. --- ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.py b/ssh.py index a756927..9056b9b 100644 --- a/ssh.py +++ b/ssh.py @@ -18,7 +18,7 @@ def connect(rhost): # stuff here. escapedir = re.sub(r'([^\w/])', r'\\\\\\\1', nicedir) cmd = r""" - sh -c PATH=%s:'$PATH sshuttle --server' + sh -c PATH=%s:'$PATH exec sshuttle --server' """ % (escapedir,) argv = ['ssh', '-v', rhost, '--', cmd.strip()] print repr(argv)