提交 08cb0433 编写于 作者: J John Ferlan 提交者: Michal Privoznik

parallels_utils: Check return status properly from virCommandRun()

上级 96e8565d
......@@ -42,7 +42,7 @@ parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
if (outbuf)
virCommandSetOutputBuffer(cmd, outbuf);
if (virCommandRun(cmd, NULL))
if (virCommandRun(cmd, NULL) < 0)
goto cleanup;
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册