mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +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: 2130363c7a8762866b523e596adf44ab63f40722) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ec08498ff29de9ccd23be88b9d7af3dab6bbb81e) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -234,7 +234,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