openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][mickledore 11/13] qemurunner: avoid leaking server_socket
Date: Thu,  1 Jun 2023 16:22:10 -1000	[thread overview]
Message-ID: <fb1de20b22119fd62b338ab69cd2b6a6c4e9dd8f.1685672395.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1685672395.git.steve@sakoman.com>

From: Mikko Rapeli <mikko.rapeli@linaro.org>

close() the server_socket before qemusock replaces
it.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit be7bbbeeb44158b181d1abc5a4d7871a9045fdd6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/lib/oeqa/utils/qemurunner.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 6734cee48d..8bb35f5a8b 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -483,6 +483,7 @@ class QemuRunner:
 
                         decodedlog = self.decode_qemulog(bootlog)
                         if self.boot_patterns['search_reached_prompt'] in decodedlog:
+                            self.server_socket.close()
                             self.server_socket = qemusock
                             stopread = True
                             reachedlogin = True
-- 
2.34.1



  parent reply	other threads:[~2023-06-02  2:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02  2:21 [OE-core][mickledore 00/13] Patch review Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 01/13] linux-yocto/5.15: update to v5.15.109 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 02/13] linux-yocto/5.15: update to v5.15.110 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 03/13] linux-yocto/5.15: update to v5.15.111 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 04/13] linux-yocto/5.15: update to v5.15.112 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 05/13] linux-yocto/5.15: update to v5.15.113 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 06/13] git: ignore CVE-2023-25815 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 07/13] libgcrypt: update 1.10.1 -> 1.10.2 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 08/13] e2fsprogs: fix ptest bug for second running Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 09/13] tiff: Remove unused patch from tiff Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 10/13] populate_sdk_base.bbclass: respect MLPREFIX for ptest-pkgs's ptest-runner Steve Sakoman
2023-06-02  2:22 ` Steve Sakoman [this message]
2023-06-02  2:22 ` [OE-core][mickledore 12/13] uninative: Upgrade to 3.10 to support gcc 13 Steve Sakoman
2023-06-02  2:22 ` [OE-core][mickledore 13/13] uninative: Upgrade to 4.0 to include latest gcc 13.1.1 Steve Sakoman
2023-06-04 17:39   ` Martin Jansa
2023-06-04 19:14     ` Steve Sakoman
2023-06-04 20:34       ` Martin Jansa
2023-06-08 18:50         ` Steve Sakoman
2023-06-08 19:01           ` Martin Jansa
2023-06-15 15:06         ` mkfs.ext4 segfaults with uninative-4.0 Was: " Martin Jansa
     [not found]         ` <1768DD7D92A3BE8A.10197@lists.openembedded.org>
2023-06-15 15:17           ` Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb1de20b22119fd62b338ab69cd2b6a6c4e9dd8f.1685672395.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).