[oe-commits] [bitbake] 02/07: process: Ensure ConnectionReader/Writer have fileno() and close() methods
git at git.openembedded.org
git at git.openembedded.org
Fri Jul 28 15:03:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit f79187f4ebfad7969be47b429995e7f7a3e33c1e
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Jul 28 15:32:25 2017 +0100
process: Ensure ConnectionReader/Writer have fileno() and close() methods
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()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list