Catch dnsmasq start failures

While we checked the return value we didn't maks sure ret != 0 which
resulted in dnsmasq errors being ignored.
This commit is contained in:
Guido Günther 2011-07-23 23:24:21 +02:00
parent 677258ab02
commit 85a954cebb

View File

@ -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