diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2021-07-22 11:19:37 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-29 23:21:24 +0100 |
commit | a83ea01b99d799025caede57512648d3258579d0 (patch) | |
tree | 72b5d1858931bc1e5f7244c9dcff36493650e8a7 /bitbake/lib/bb/parse/ast.py | |
parent | 445c5b9324a6243a0a3941c5f00e369d7749efde (diff) | |
download | poky-a83ea01b99d799025caede57512648d3258579d0.tar.gz |
bitbake: bitbake: asyncrpc: Catch early SIGTERM
If the SIGTERM signal is sent to an asyncrpc server before it has
installed the SIGTERM handler in the main loop, it may miss the signal
which will can cause the calling process to wait forever on the join().
To resolve this, the calling process should mask of SIGTERM before
forking the server process and the server should unmask the signal only
after the handler is installed. To simplify the usage of the server, an
new helper function called serve_as_process() is added to do this
automatically and correctly.
Thanks: Scott Murray <scott.murray@konsulko.com> for helping debug
(Bitbake rev: ef2865efa98ad20823267364f2159d8d8c931400)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
0 files changed, 0 insertions, 0 deletions