提交 85a954ce 编写于 作者: G Guido Günther

Catch dnsmasq start failures

While we checked the return value we didn't maks sure ret != 0 which
resulted in dnsmasq errors being ignored.
上级 677258ab
......@@ -745,8 +745,10 @@ networkStartDhcpDaemon(virNetworkObjPtr network)
if (ret < 0)
goto cleanup;
if (virCommandRun(cmd, NULL) < 0)
ret = virCommandRun(cmd, NULL);
if (ret < 0) {
goto cleanup;
}
/*
* There really is no race here - when dnsmasq daemonizes, its
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册