summaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index a30f594e44..3c72b60f50 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -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