aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/backdoor.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/gevent/backdoor.py')
-rw-r--r--python/gevent/backdoor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/gevent/backdoor.py b/python/gevent/backdoor.py
index ff45166..8489417 100644
--- a/python/gevent/backdoor.py
+++ b/python/gevent/backdoor.py
@@ -178,6 +178,10 @@ class _fileobject(object):
def __getattr__(self, name):
return getattr(self._fobj, name)
+ def close(self):
+ self._fobj.close()
+ self._sock.close()
+
def write(self, data):
if not isinstance(data, bytes):
data = data.encode('utf-8')