diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-25 10:21:58 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-26 14:36:48 +0100 |
| commit | 1d2e3d006a74af245a3435bd3f0eba0156a767ad (patch) | |
| tree | f7d704d4e5dbe184bc3b749b4f5a711367621460 | |
| parent | 24a32132a5853df4c2f9eb7fba13eb3e2d1ef783 (diff) | |
| download | poky-1d2e3d006a74af245a3435bd3f0eba0156a767ad.tar.gz | |
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: ec08498ff29de9ccd23be88b9d7af3dab6bbb81e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index d55248c497..d961a9a218 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
| @@ -265,7 +265,7 @@ class QemuRunner: | |||
| 265 | r = os.fdopen(r) | 265 | r = os.fdopen(r) |
| 266 | x = r.read() | 266 | x = r.read() |
| 267 | os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM) | 267 | os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM) |
| 268 | sys.exit(0) | 268 | os._exit(0) |
| 269 | 269 | ||
| 270 | self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid) | 270 | self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid) |
| 271 | self.logger.debug("waiting at most %s seconds for qemu pid (%s)" % | 271 | self.logger.debug("waiting at most %s seconds for qemu pid (%s)" % |
