diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-06 17:08:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-08 10:18:02 +0100 |
commit | c25309ecde4e7ff81fb74a74fe06991dcdbbbfc8 (patch) | |
tree | 45b74783f559018a53e070a06e0e28571b230cf1 /bitbake/lib | |
parent | 1ba387a12c43f519d0b172ec169726331c4de25f (diff) | |
download | poky-c25309ecde4e7ff81fb74a74fe06991dcdbbbfc8.tar.gz |
bitbake: cooker: Ensure parser worker signal handlers are default
Otherwise this can interfer with multiprocessing exit handling.
(Bitbake rev: b88816c4c84fa4f5ad39c263f5e75b96476e9768)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7de3df018d..f3ff4274ad 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -2090,6 +2090,8 @@ class CookerParser(object): | |||
2090 | if self.toparse: | 2090 | if self.toparse: |
2091 | bb.event.fire(bb.event.ParseStarted(self.toparse), self.cfgdata) | 2091 | bb.event.fire(bb.event.ParseStarted(self.toparse), self.cfgdata) |
2092 | def init(): | 2092 | def init(): |
2093 | signal.signal(signal.SIGTERM, signal.SIG_DFL) | ||
2094 | signal.signal(signal.SIGHUP, signal.SIG_DFL) | ||
2093 | bb.utils.set_process_name(multiprocessing.current_process().name) | 2095 | bb.utils.set_process_name(multiprocessing.current_process().name) |
2094 | multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1) | 2096 | multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1) |
2095 | multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1) | 2097 | multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1) |