Commit ad11aede authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[2790] Short-term workaround for the blocking read loop in zonemgr

In the end we'll need to address the threading model in zonemgr, but this should be a good short-term workaround for the problem.
parent 75af5cd5
......@@ -690,7 +690,19 @@ class Zonemgr:
self.running = True
while not self._shutdown_event.is_set():
fileno = self._module_cc.get_socket().fileno()
# Wait with select() until there is something to read,
# and then read it using a non-blocking read
# This may or may not be relevant data for this loop,
# but due to the way the zonemgr does threading, we
# can't have a blocking read loop here.
(reads, _, _) =[fileno], [], [])
except select.error as se:
if se.args[0] != errno.EINTR:
if fileno in reads:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment