summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-09-14 16:17:35 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-15 11:53:49 +0100
commit42bbf1451ac67675de52f7dc0285b1f3bb24216b (patch)
treef65e298726d8fbeb1ac15ba3991ad4ffbced3eab
parentfd924e293f536d08ddf1cc06087b9880325f6169 (diff)
downloadpoky-42bbf1451ac67675de52f7dc0285b1f3bb24216b.tar.gz
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 rev: 9f4207f4b598f549cbd4159841c720276736f23b) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/cooker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 58c223c1ca..5442f7d225 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -2093,6 +2093,7 @@ class CookerParser(object):
2093 def init(): 2093 def init():
2094 signal.signal(signal.SIGTERM, signal.SIG_DFL) 2094 signal.signal(signal.SIGTERM, signal.SIG_DFL)
2095 signal.signal(signal.SIGHUP, signal.SIG_DFL) 2095 signal.signal(signal.SIGHUP, signal.SIG_DFL)
2096 signal.signal(signal.SIGINT, signal.SIG_IGN)
2096 bb.utils.set_process_name(multiprocessing.current_process().name) 2097 bb.utils.set_process_name(multiprocessing.current_process().name)
2097 multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1) 2098 multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1)
2098 multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1) 2099 multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1)