bitbake: runqueue: Don't error if we never setup workers
If we didn't setup any workers (such as bitbake -S), this would error since we're trying to set a signal handler to None. This patch avoids that problem. (Bitbake rev: ce17478c8197abf178c00774f5bbe23fd4375ee2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e8476a9d19
commit
92155fde20
|
@ -947,7 +947,8 @@ class RunQueue:
|
|||
|
||||
def teardown_workers(self):
|
||||
self.teardown = True
|
||||
signal.signal(signal.SIGCHLD, self.oldsigchld)
|
||||
if self.oldsigchld:
|
||||
signal.signal(signal.SIGCHLD, self.oldsigchld)
|
||||
self._teardown_worker(self.worker, self.workerpipe)
|
||||
self.worker = None
|
||||
self.workerpipe = None
|
||||
|
|
Loading…
Reference in New Issue