diff options
-rw-r--r-- | paramiko/proxy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/proxy.py b/paramiko/proxy.py index 292e3612..218b76e2 100644 --- a/paramiko/proxy.py +++ b/paramiko/proxy.py @@ -22,6 +22,7 @@ L{ProxyCommand}. import os from shlex import split as shlsplit +import signal from subprocess import Popen, PIPE from paramiko.ssh_exception import ProxyCommandFailure @@ -82,7 +83,7 @@ class ProxyCommand(object): raise BadProxyCommand(' '.join(self.cmd), e.strerror) def close(self): - self.process.terminate() + os.kill(self.process.pid, signal.SIGTERM) def settimeout(self, timeout): # Timeouts are meaningless for this implementation, but are part of the |