]> Git Repo - qemu.git/commitdiff
vl: Report failure to sandbox at most once
authorMarkus Armbruster <[email protected]>
Fri, 13 Mar 2015 11:59:43 +0000 (12:59 +0100)
committerMarkus Armbruster <[email protected]>
Mon, 8 Jun 2015 17:33:20 +0000 (19:33 +0200)
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
vl.c

diff --git a/vl.c b/vl.c
index 66ccd06be8776d50b1bd828f50bec7e36f7a08ee..dd56a82f09267207ca17dfa168f8a409154bc5dc 100644 (file)
--- 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);
     }
 
This page took 0.02877 seconds and 4 git commands to generate.