From ebd007b21757d3a88b7f769fa6000662fae2eb9a Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 5 Nov 2012 23:10:13 -0800 Subject: [PATCH] Python 2.5 compat --- paramiko/proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paramiko/proxy.py b/paramiko/proxy.py index 292e361..218b76e 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