diff options
-rw-r--r-- | bitbake/lib/bb/server/process.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 8a7c43160a..3d9077fd07 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -499,9 +499,14 @@ class BBUIEventQueue: | |||
499 | def startCallbackHandler(self): | 499 | def startCallbackHandler(self): |
500 | bb.utils.set_process_name("UIEventQueue") | 500 | bb.utils.set_process_name("UIEventQueue") |
501 | while True: | 501 | while True: |
502 | self.reader.wait() | 502 | try: |
503 | event = self.reader.get() | 503 | self.reader.wait() |
504 | self.queue_event(event) | 504 | event = self.reader.get() |
505 | self.queue_event(event) | ||
506 | except EOFError: | ||
507 | # Easiest way to exit is to close the file descriptor to cause an exit | ||
508 | break | ||
509 | self.reader.close() | ||
505 | 510 | ||
506 | class ConnectionReader(object): | 511 | class ConnectionReader(object): |
507 | 512 | ||