From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z04oD-0007xv-5l for qemu-devel@nongnu.org; Wed, 03 Jun 2015 05:18:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z04oB-0007NO-RG for qemu-devel@nongnu.org; Wed, 03 Jun 2015 05:18:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z04oB-0007N1-LQ for qemu-devel@nongnu.org; Wed, 03 Jun 2015 05:17:59 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id E98AD19F3A3 for ; Wed, 3 Jun 2015 09:17:58 +0000 (UTC) From: Markus Armbruster Date: Wed, 3 Jun 2015 11:17:48 +0200 Message-Id: <1433323076-9264-2-git-send-email-armbru@redhat.com> In-Reply-To: <1433323076-9264-1-git-send-email-armbru@redhat.com> References: <1433323076-9264-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH v2 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 Cc: kwolf@redhat.com, pbonzini@redhat.com 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 1d4c089..04a6066 100644 --- a/vl.c +++ b/vl.c @@ -3780,7 +3780,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