diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-05-10 15:59:34 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:47 +0100 |
commit | c7a68ff3ccf95a4366aa58f984338cd0df74d663 (patch) | |
tree | ac51484f7d260aa791e01b97858651cd9b1f77f0 /meta/lib | |
parent | 830f4cb0a62e63d378a1cebe29996d7355898917 (diff) | |
download | poky-c7a68ff3ccf95a4366aa58f984338cd0df74d663.tar.gz |
qemurunner: avoid leaking server_socket
close() the server_socket before qemusock replaces
it.
(From OE-Core rev: be7bbbeeb44158b181d1abc5a4d7871a9045fdd6)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 3b7398b872..c06268f5bc 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -491,6 +491,7 @@ class QemuRunner: | |||
491 | 491 | ||
492 | decodedlog = self.decode_qemulog(bootlog) | 492 | decodedlog = self.decode_qemulog(bootlog) |
493 | if self.boot_patterns['search_reached_prompt'] in decodedlog: | 493 | if self.boot_patterns['search_reached_prompt'] in decodedlog: |
494 | self.server_socket.close() | ||
494 | self.server_socket = qemusock | 495 | self.server_socket = qemusock |
495 | stopread = True | 496 | stopread = True |
496 | reachedlogin = True | 497 | reachedlogin = True |