mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
network: Try to read dnsmasq PIDs for inactive networks too
Just in case one needs a clean up. Resolves: https://issues.redhat.com/browse/RHEL-50968 Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
447fda8981
commit
74a22c09be
@ -492,8 +492,9 @@ networkUpdateState(virNetworkObj *obj,
|
|||||||
if (virNetworkObjIsActive(obj))
|
if (virNetworkObjIsActive(obj))
|
||||||
virNetworkObjPortForEach(obj, networkUpdatePort, obj);
|
virNetworkObjPortForEach(obj, networkUpdatePort, obj);
|
||||||
|
|
||||||
/* Try and read dnsmasq pids of active networks */
|
/* Try and read dnsmasq pids of both active and inactive networks, just in
|
||||||
if (virNetworkObjIsActive(obj) && def->ips && (def->nips > 0)) {
|
* case a network became inactive and we need to clean up. */
|
||||||
|
if (def->ips && (def->nips > 0)) {
|
||||||
const char *binpath = NULL;
|
const char *binpath = NULL;
|
||||||
pid_t dnsmasqPid;
|
pid_t dnsmasqPid;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user