bitbake: cooker: Block SIGINT in worker processes
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]
Signed-off-by Joshua Watt <[email protected]>
--- bitbake/lib/bb/cooker.py | 1 + 1 file changed, 1 insertion(+)
bitbake/lib/bb/cooker.py +1 -0
@@ -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