mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
qemurunner.py: wait for PID to appear in procfs
We need QEMU PID in order to access "/proc/<qemupid>/cmdline" Having a valid QEMU PID does not mean we can access the proc entry immediately, we need to wait for the /proc/<qemupid> to appear before we can access it. (From OE-Core rev: d2d069fa9910d1c7a94c898355a63fca03ec5ad8) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
92a08ae838
commit
03aa1ef733
@@ -394,9 +394,10 @@ class QemuRunner:
|
||||
f = open(self.qemu_pidfile, 'r')
|
||||
qemu_pid = f.read()
|
||||
f.close()
|
||||
#logger.info("qemu_pid: %s" % qemu_pid)
|
||||
self.qemupid = int(qemu_pid)
|
||||
return True
|
||||
qemupid = int(qemu_pid)
|
||||
if os.path.exists("/proc/" + str(qemupid)):
|
||||
self.qemupid = qemupid
|
||||
return True
|
||||
return False
|
||||
|
||||
def run_serial(self, command, raw=False, timeout=5):
|
||||
|
||||
Reference in New Issue
Block a user