From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z21NS-0007BD-1I for qemu-devel@nongnu.org; Mon, 08 Jun 2015 14:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z21NN-0008Uy-UP for qemu-devel@nongnu.org; Mon, 08 Jun 2015 14:02:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z21NN-0008UO-Px for qemu-devel@nongnu.org; Mon, 08 Jun 2015 14:02:21 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 9585319F270 for ; Mon, 8 Jun 2015 18:02:20 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t58I2ILm014110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 8 Jun 2015 14:02:20 -0400 From: Markus Armbruster Date: Mon, 8 Jun 2015 20:02:09 +0200 Message-Id: <1433786537-30874-2-git-send-email-armbru@redhat.com> In-Reply-To: <1433786537-30874-1-git-send-email-armbru@redhat.com> References: <1433786537-30874-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL 1/9] vl: Report failure to sandbox at most once List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It's reported once per -sandbox on. Stop on the first failure, like we do for other options. Not fixed: "-sandbox on -sandbox off" should leave the sandbox off. It doesn't. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 66ccd06..dd56a82 100644 --- a/vl.c +++ b/vl.c @@ -3797,7 +3797,7 @@ int main(int argc, char **argv, char **envp) exit(1); } - if (qemu_opts_foreach(qemu_find_opts("sandbox"), parse_sandbox, NULL, 0)) { + if (qemu_opts_foreach(qemu_find_opts("sandbox"), parse_sandbox, NULL, 1)) { exit(1); } -- 1.9.3