[Qemu-devel] [PULL 36/40] vl: Fix exit status for -drive format=help

Markus Armbruster posted 40 patches 7 years ago
There is a newer version of this series
[Qemu-devel] [PULL 36/40] vl: Fix exit status for -drive format=help
Posted by Markus Armbruster 7 years ago
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181017082702.5581-35-armbru@redhat.com>
---
 vl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vl.c b/vl.c
index 4efa2d08d4..812ceba425 100644
--- a/vl.c
+++ b/vl.c
@@ -4398,7 +4398,7 @@ int main(int argc, char **argv, char **envp)
     if (qemu_opts_foreach(qemu_find_opts("drive"), drive_init_func,
                           &machine_class->block_default_type, &error_fatal)) {
         /* We printed help */
-        exit(1);
+        exit(0);
     }
 
     default_drive(default_cdrom, snapshot, machine_class->block_default_type, 2,
-- 
2.17.2