summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-11-05 23:10:13 -0800
committerJeff Forcier <jeff@bitprophet.org>2012-11-05 23:10:13 -0800
commitebd007b21757d3a88b7f769fa6000662fae2eb9a (patch)
treee3e5997acd321252970f6629d96b716b0eb1308f
parente7ab3c068fe39cb7be783127039113213fdb2be4 (diff)
Python 2.5 compat
-rw-r--r--paramiko/proxy.py3
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