提交 dd037176 编写于 作者: D Daniel P. Berrange

Remove pointless virLXCProcessMonitorDestroy method

Asynchronously setting priv->mon to NULL was pointless,
just remove the destroy callback entirely.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 09e0cb42
...@@ -554,20 +554,6 @@ cleanup: ...@@ -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; extern virLXCDriverPtr lxc_driver;
static void virLXCProcessMonitorEOFNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED, static void virLXCProcessMonitorEOFNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED,
virDomainObjPtr vm) virDomainObjPtr vm)
...@@ -649,7 +635,6 @@ static void virLXCProcessMonitorExitNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED ...@@ -649,7 +635,6 @@ static void virLXCProcessMonitorExitNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED
static virLXCMonitorCallbacks monitorCallbacks = { static virLXCMonitorCallbacks monitorCallbacks = {
.eofNotify = virLXCProcessMonitorEOFNotify, .eofNotify = virLXCProcessMonitorEOFNotify,
.destroy = virLXCProcessMonitorDestroy,
.exitNotify = virLXCProcessMonitorExitNotify, .exitNotify = virLXCProcessMonitorExitNotify,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册