Skip to contentSkip to conversation

Exit error code for -M ?

PATCH New Aurelien Jarno 1 participant 1 message Jun 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Exit error code for -M ?

Hi,

The patch below, taken from the Debian package, fixes the exit error code when the list of supported machine is requested (-M ?).
asked

Bye,
Aurelien

Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.310

vl.c +1 -1
diff -u -d -p -r1.310 vl.c
@@ -6705,7 +6707,7 @@ void help(void)
 #endif
            DEFAULT_GDBSTUB_PORT,
            "/tmp/qemu.log");
-    exit(1);
+    exit(strcmp(optarg, "?"));
 }
 
 #define HAS_ARG 0x0001
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net