summaryrefslogtreecommitdiffstats
path: root/sshuttle/ssh.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/ssh.py')
-rw-r--r--sshuttle/ssh.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sshuttle/ssh.py b/sshuttle/ssh.py
index 82fc9f0..dad6c35 100644
--- a/sshuttle/ssh.py
+++ b/sshuttle/ssh.py
@@ -133,6 +133,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
debug2('executing: %r\n' % argv)
p = ssubprocess.Popen(argv, stdin=s1a, stdout=s1b, preexec_fn=setup,
close_fds=True, stderr=stderr)
+ # No env: Would affect the entire sshuttle.
os.close(s1a)
os.close(s1b)
s2.sendall(content)