Fix exit status check with qemu -help

This commit is contained in:
Daniel P. Berrange 2008-05-21 21:14:36 +00:00
parent e866e302f8
commit ecb117a4a8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed May 21 17:13:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Fix exit status check when using -help arg
Wed May 21 16:24:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
Fix up misc memory leaks / incorrect docs (Cole Robinson)

View File

@ -526,7 +526,7 @@ static int qemudExtractVersionInfo(const char *qemu, int *version, int *flags) {
/* Check & log unexpected exit status, but don't fail,
* as there's really no need to throw an error if we did
* actually read a valid version number above */
if (WEXITSTATUS(got) != 1) {
if (WEXITSTATUS(got) != 0) {
qemudLog(QEMUD_WARN,
_("Unexpected exit status '%d', qemu probably failed"),
got);