diff mbox series

[v2,10/11] runqueue: clean up dumpsigs polling

Message ID 20260827201720.698482-12-chris.laplante@agilent.com
State New
Headers show
Series runqueue correctness fixes, optimizations, and cleanups | expand

Commit Message

chris.laplante@agilent.com Aug. 27, 2026, 8:17 p.m. UTC
From: Chris Laplante <chris.laplante@agilent.com>

Iterate over a shallow copy so removing completed processes cannot skip
adjacent entries.

AI-Generated: GPT-5.6 Sol

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
---
 lib/bb/runqueue.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 75b879ead..04c1c4d3b 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1724,7 +1724,7 @@  class RunQueue:
 
             return 1.0
 
-        for q in self.dumpsigs_launched:
+        for q in self.dumpsigs_launched.copy():
             # The finished processes are joined when calling is_alive()
             if not q.is_alive():
                 self.dumpsigs_launched.remove(q)
@@ -1733,7 +1733,7 @@  class RunQueue:
             return 1.0
 
         for p in self.dumpsigs_launched:
-                p.join()
+            p.join()
 
         bb.parse.siggen.dump_sigs(self.rqdata.dataCaches, options)