From nobody Sun Nov 9 11:56:08 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1550678833316172.04400771194946; Wed, 20 Feb 2019 08:07:13 -0800 (PST) Received: from localhost ([127.0.0.1]:41654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwUOm-00028I-SN for importer@patchew.org; Wed, 20 Feb 2019 11:07:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwU5Y-0001j5-1y for qemu-devel@nongnu.org; Wed, 20 Feb 2019 10:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwU5W-0003Tm-P9 for qemu-devel@nongnu.org; Wed, 20 Feb 2019 10:47:11 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:35794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwU5W-0003Q4-Ec for qemu-devel@nongnu.org; Wed, 20 Feb 2019 10:47:10 -0500 Received: by mail-wr1-x443.google.com with SMTP id t18so26582925wrx.2 for ; Wed, 20 Feb 2019 07:47:04 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id a8sm8836346wmh.26.2019.02.20.07.47.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Feb 2019 07:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=Exy/7QWt1h/ZnFwNkIDBARwMmYbeazcgMNqAMgalsvI=; b=PoKOTuceHZAJVKE/c096V6UqRA0DDubjHpCD+S3CjubKXsTELIE4ubY/HqmdjDKlRY y9wq+TSBdZyyOtqm6+hiCqF2NjIw9q93odtbmzVRe+K6a96XuWHlaQljbnIaBslsTC8R mcOMaeuSIFLCJF6+cWzgXnEU3wMEE36C2JbKcIXP6z5yfROE9CSp8eNlLb6KskJVYzmx pftnDYBeIgHdcfA/L/OYHrI4KQQdz53xUFftL+FvnhXHOyP0ZYcM7bak/xqkZHi26iXt 7rvIC9gFOZAB4sBywkVAKp7JuNLS8UwfnrODxMz1y1c7L9NKJrOUzvI4vQyXYJOZjjV6 57NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=Exy/7QWt1h/ZnFwNkIDBARwMmYbeazcgMNqAMgalsvI=; b=c5/OLNkqRPW4+iI5hk04CHvdiJDuMy1EztTgsN8MjZdMgR79s4blzcR+pXW5VDO4fy UXB5534U3aGuXn7GAAQfH5MNqQ++XJPyAllQPCAbQ6N1zeAJlhloU/Mi+PYJsPOLCVUn fG/ltv9gJNHA9oSRhNAp0X33aqvwoTGiczXQ7mQ5Kb3GN4CFgeySNQBT+eIrERAEy3Ar I/Z4gjTbbbsYf/MNfLejkulGpjdipQpo/SNtizh/WQ7PJzLo7iY9Gf9EXMFqnnm75Ag3 DddsZYnT236iyggxkgJm5LCFqp15VBXJmGq5wufDuTmyGXrj6DRFDqPBGQlWM1JYjApr NNBw== X-Gm-Message-State: AHQUAuaU+VyLBkQOiibl25WiZhtYTG9HZuy9ma/hIjF+WrN5tnAzEYt+ HcUMTRptV7y7vQAweLQHqFauz6B9 X-Google-Smtp-Source: AHgI3IacNL7/bxUE6v0y5HAYkp13Dvjfxw2aWy8+1Msof+GW7phK6+1ZzD7vwH9qrQ+LwG31EYdD/g== X-Received: by 2002:a1c:c003:: with SMTP id q3mr6858555wmf.84.1550677622606; Wed, 20 Feb 2019 07:47:02 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 20 Feb 2019 16:47:01 +0100 Message-Id: <1550677621-10139-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH] fixup! vhost-user-test: create a main loop per TestServer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mst@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix a hang that is only latent until qgraph is merged. Signed-off-by: Paolo Bonzini --- tests/vhost-user-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c index 33030e0..527d3b3 100644 --- a/tests/vhost-user-test.c +++ b/tests/vhost-user-test.c @@ -557,8 +557,6 @@ static void test_server_free(TestServer *server) while (g_main_context_pending(NULL)) { g_main_context_iteration(NULL, TRUE); } - g_main_loop_unref(server->loop); - g_main_context_unref(server->context); =20 qemu_chr_fe_deinit(&server->chr, true); =20 @@ -580,6 +578,8 @@ static void test_server_free(TestServer *server) g_assert(server->bus); qpci_free_pc(server->bus); =20 + g_main_loop_unref(server->loop); + g_main_context_unref(server->context); g_free(server); } =20 --=20 1.8.3.1