]> code.ossystems Code Review - openembedded-core.git/commit
qemurunner.py: fix race condition at qemu startup
authorChen Qi <Qi.Chen@windriver.com>
Fri, 12 Jul 2019 07:31:13 +0000 (15:31 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Jul 2019 08:28:37 +0000 (09:28 +0100)
commit170e59b203a02f8438b9aeab3a45f6fcd6608b1f
treeb13cdf07def88d57ff2cd99b813e767e612489c8
parent506388a10a26613524602dcb4e630f216c6fee60
qemurunner.py: fix race condition at qemu startup

When handling pid file, qemu would first create the file, stat it,
lock it and then write actually contents to it.

So it's possbile that when reading the pid file, the content is empty.

[YOCTO #13390]

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