diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-25 10:21:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-07 15:10:33 +0100 |
commit | 2f3579b7212b8a79fd2d96131608ab76f2ad1c2b (patch) | |
tree | 64fa722466158b55479371a6a50346463e127ea2 /meta/lib | |
parent | ff75921e81b372909f4237e8cb30d4fd57300229 (diff) | |
download | poky-2f3579b7212b8a79fd2d96131608ab76f2ad1c2b.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: 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>
Diffstat (limited to 'meta/lib')
-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 f7e5a3b3a6..de0dff3ff0 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -234,7 +234,7 @@ class QemuRunner: | |||
234 | r = os.fdopen(r) | 234 | r = os.fdopen(r) |
235 | x = r.read() | 235 | x = r.read() |
236 | os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM) | 236 | os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM) |
237 | sys.exit(0) | 237 | os._exit(0) |
238 | 238 | ||
239 | self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid) | 239 | self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid) |
240 | self.logger.debug("waiting at most %s seconds for qemu pid (%s)" % | 240 | self.logger.debug("waiting at most %s seconds for qemu pid (%s)" % |