mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Fix exit status check with qemu -help
This commit is contained in:
1 parent
e866e302f8
commit
ecb117a4a8
2 files changed
+5
-1
No files matched your search
@@ -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)
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user