summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-17 15:03:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-17 15:04:46 +0000
commit92155fde2079251739f455bca599a52cd21ef12b (patch)
tree602f48d7262e8724a38ad1f99aecee36c0ab6d31 /bitbake
parente8476a9d19dba7a1a6c5a558a89f2c9f89d39ae2 (diff)
downloadpoky-92155fde2079251739f455bca599a52cd21ef12b.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index a30f594e44..3c72b60f50 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -947,7 +947,8 @@ class RunQueue:
947 947
948 def teardown_workers(self): 948 def teardown_workers(self):
949 self.teardown = True 949 self.teardown = True
950 signal.signal(signal.SIGCHLD, self.oldsigchld) 950 if self.oldsigchld:
951 signal.signal(signal.SIGCHLD, self.oldsigchld)
951 self._teardown_worker(self.worker, self.workerpipe) 952 self._teardown_worker(self.worker, self.workerpipe)
952 self.worker = None 953 self.worker = None
953 self.workerpipe = None 954 self.workerpipe = None