mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
677258ab02
commit
85a954cebb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user