[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Exit error code for -M ?
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [PATCH] Exit error code for -M ? |
Date: |
Sat, 23 Jun 2007 00:30:30 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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
diff -u -d -p -r1.310 vl.c
--- vl.c 22 Jun 2007 08:23:44 -0000 1.310
+++ vl.c 22 Jun 2007 22:16:44 -0000
@@ -6705,7 +6707,7 @@ void help(void)
#endif
DEFAULT_GDBSTUB_PORT,
"/tmp/qemu.log");
- exit(1);
+ exit(strcmp(optarg, "?"));
}
#define HAS_ARG 0x0001
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' address@hidden | address@hidden
`- people.debian.org/~aurel32 | www.aurel32.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Exit error code for -M ?,
Aurelien Jarno <=