[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6999/8267] bitbake: process: Ensure ConnectionReader/Writer have fileno() and close() methods
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 6999/8267] bitbake: process: Ensure ConnectionReader/Writer have fileno() and close() methods
- Date: Sun, 17 Dec 2017 05:37:56 +0000 (UTC)
commit 8b7aa5bfd6a53444df60d789c6a7ed2387e7b4c1
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Fri Jul 28 15:32:25 2017 +0100
bitbake: process: Ensure ConnectionReader/Writer have fileno() and close() methods
Expose the underlying close() and fileno() methods which allow connection
monitoring and cleanup.
(Bitbake rev: f79187f4ebfad7969be47b429995e7f7a3e33c1e)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/lib/bb/server/process.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 1975bd4..8a7c431 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]