diff options
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
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 |