diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-01-30 23:11:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-01 14:05:15 +0000 |
commit | 7388cb224e3dd245e5269b4037fce1a5da940455 (patch) | |
tree | a5f7f2fb553466cca88617b7df0f0146fe777bf7 /meta/recipes-devtools/git | |
parent | da95831d91b1265ecaee5bbfaeb1caaa2c290838 (diff) | |
download | poky-7388cb224e3dd245e5269b4037fce1a5da940455.tar.gz |
oeqa/qemurunner: do not use Popen.poll() when terminating runqemu with a signal
This does not actually guarantee that the child runqemu process has completely exited:
poll() may return prematurely while the SIGTERM handler in runqemu is still running.
This thwarts the rest of the processing, and may terminate the handler before
it completes.
Use Popen.communicate() instead: this is what python documentation recommends as well:
https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate
(From OE-Core rev: cd3e55606c427287f37585c5d7cde936471e52f4)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git')
0 files changed, 0 insertions, 0 deletions