Skip to contentSkip to conversation

bitbake: cooker: Block SIGINT in worker processes

PATCH New Joshua Watt 1 participant 1 message Sep 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: cooker: Block SIGINT in worker processes

Blocks SIGINT in the worker processes to prevent them from running the parent process signal handler, which causes them to deadlock under certain circumstances.

[YOCTO #14034]

---
 bitbake/lib/bb/cooker.py | 1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/cooker.py +1 -0
index 58c223c1ca..5442f7d225 100644
@@ -2093,6 +2093,7 @@ class CookerParser(object):
             def init():
                 signal.signal(signal.SIGTERM, signal.SIG_DFL)
                 signal.signal(signal.SIGHUP, signal.SIG_DFL)
+                signal.signal(signal.SIGINT, signal.SIG_IGN)
                 bb.utils.set_process_name(multiprocessing.current_process().name)
                 multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1)
                 multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1)
Signature · 1 line
2.28.0