mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Remove pointless virLXCProcessMonitorDestroy method
Asynchronously setting priv->mon to NULL was pointless, just remove the destroy callback entirely. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
09e0cb4218
commit
dd0371764f
@ -554,20 +554,6 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static void virLXCProcessMonitorDestroy(virLXCMonitorPtr mon,
|
||||
virDomainObjPtr vm)
|
||||
{
|
||||
virLXCDomainObjPrivatePtr priv;
|
||||
|
||||
virDomainObjLock(vm);
|
||||
priv = vm->privateData;
|
||||
if (priv->monitor == mon)
|
||||
priv->monitor = NULL;
|
||||
if (virObjectUnref(vm))
|
||||
virDomainObjUnlock(vm);
|
||||
}
|
||||
|
||||
|
||||
extern virLXCDriverPtr lxc_driver;
|
||||
static void virLXCProcessMonitorEOFNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED,
|
||||
virDomainObjPtr vm)
|
||||
@ -649,7 +635,6 @@ static void virLXCProcessMonitorExitNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED
|
||||
|
||||
static virLXCMonitorCallbacks monitorCallbacks = {
|
||||
.eofNotify = virLXCProcessMonitorEOFNotify,
|
||||
.destroy = virLXCProcessMonitorDestroy,
|
||||
.exitNotify = virLXCProcessMonitorExitNotify,
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user