提交 ecb117a4 编写于 作者: D Daniel P. Berrange

Fix exit status check with qemu -help

上级 e866e302
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册