[bitbake-devel] [PATCH 2/7] process: Ensure ConnectionReader/Writer have fileno() and close() methods
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Jul 28 14:55:24 UTC 2017
Expose the underlying close() and fileno() methods which allow connection
monitoring and cleanup.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/server/process.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 1975bd4..8a7c431 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -523,6 +523,10 @@ class ConnectionReader(object):
def fileno(self):
return self.reader.fileno()
+ def close(self):
+ return self.reader.close()
+
+
class ConnectionWriter(object):
def __init__(self, fd):
@@ -536,3 +540,8 @@ class ConnectionWriter(object):
with self.wlock:
self.writer.send_bytes(obj)
+ def fileno(self):
+ return self.writer.fileno()
+
+ def close(self):
+ return self.writer.close()
--
2.7.4
More information about the bitbake-devel
mailing list