mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
oeqa/qemurunner: Use oe._exit(), not sys.exit()
sys.exit will cause finally statements and other code to run at exit. Since we're using os.fork() here, os._exit() is apprioriate in this codepath. (From OE-Core rev: a99e23c403abd8e520079e2e216d87e713559682) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ec08498ff29de9ccd23be88b9d7af3dab6bbb81e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -235,7 +235,7 @@ class QemuRunner:
|
|||||||
r = os.fdopen(r)
|
r = os.fdopen(r)
|
||||||
x = r.read()
|
x = r.read()
|
||||||
os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM)
|
os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM)
|
||||||
sys.exit(0)
|
os._exit(0)
|
||||||
|
|
||||||
self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid)
|
self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid)
|
||||||
self.logger.debug("waiting at most %s seconds for qemu pid (%s)" %
|
self.logger.debug("waiting at most %s seconds for qemu pid (%s)" %
|
||||||
|
|||||||
Reference in New Issue
Block a user