mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Fix exit status check with qemu -help
This commit is contained in:
parent
e866e302f8
commit
ecb117a4a8
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user