summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2016-07-30 13:28:11 -0700
committerJeff Forcier <jeff@bitprophet.org>2016-07-30 13:28:11 -0700
commit228ed87e2f4b7314e4cfb67ee462550c5f20edef (patch)
treea0f97df8487946b53741c437aa69285ae0f3a711
parent9f36cb1535760a592116579842c7feb0b1d30cb3 (diff)
Untested fix re #789
-rw-r--r--paramiko/proxy.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/paramiko/proxy.py b/paramiko/proxy.py
index d3ae436f..5f7f0023 100644
--- a/paramiko/proxy.py
+++ b/paramiko/proxy.py
@@ -107,5 +107,14 @@ class ProxyCommand(ClosingContextManager):
def close(self):
os.kill(self.process.pid, signal.SIGTERM)
+ @property
+ def closed(self):
+ return self.process.returncode is not None
+
+ @property
+ def _closed(self):
+ # Concession to Python 3 socket-like API
+ return self.closed
+
def settimeout(self, timeout):
self.timeout = timeout