]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemurunner: Fix a bug with fork/exit handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Mar 2025 13:13:31 +0000 (13:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Mar 2025 18:01:15 +0000 (18:01 +0000)
commit652e40bfae24b8e23bbf7a7f35d900d2ab8d0f92
tree391e159e2bcafcfb93661759efed30ccc3c988d8
parent3e09e4d9a19cec68a41faaea555a1ed7b76e576e
qemurunner: Fix a bug with fork/exit handling

If you send this forked process a SIGTERM, it will execute all of the
parent's exit code leading to two sets of console/exit output which is
extremely confusing. Wrap the code in a try/finally to ensure we always
call os._exit() to avoid this.

I spent far too long trying to work out the crazy console output from this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py