summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-10 13:38:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-10 13:38:58 +0100
commit7a28ac4fe478bee1e52e84412da9626495f9c6c7 (patch)
treefcd6f977fdcc9e026c2b421747d1c82cfa435ae1
parentf5ad8349a5dbff9824a89f5708cfd011d61888c9 (diff)
downloadbitbake-7a28ac4fe478bee1e52e84412da9626495f9c6c7.tar.gz
server/process: Avoid tracebacks at exit
In theory this should have been worked around but is still occurring. Add it to the list of things to ignore when bitbake is shutting down. Traceback (most recent call last): File "/usr/lib64/python3.9/threading.py", line 973, in _bootstrap_inner self.run() File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py", line 698, in startCallbackHandler event = self.reader.get() File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/server/process.py", line 722, in get res = self.reader.recv_bytes() File "/usr/lib64/python3.9/multiprocessing/connection.py", line 221, in recv_bytes buf = self._recv_bytes(maxlength) File "/usr/lib64/python3.9/multiprocessing/connection.py", line 426, in _recv_bytes return self._recv(size) File "/usr/lib64/python3.9/multiprocessing/connection.py", line 384, in _recv chunk = read(handle, remaining) TypeError: an integer is required (got type NoneType)' Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/server/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 02bef3506..43790b663 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -697,7 +697,7 @@ class BBUIEventQueue:
if ready:
event = self.reader.get()
self.queue_event(event)
- except (EOFError, OSError):
+ except (EOFError, OSError, TypeError):
# Easiest way to exit is to close the file descriptor to cause an exit
break