[Feature] Libvirt now destroys its domains with signal.
[Cause] Destroying a domain in other way requires setns, which might not be available on
some systems.
[Solution] Tell libvirt to destroy a domain with signal.
[Verification] Build, install, run tests. All should pass.
Change-Id: I9d990488dd9a049feba2c02b070be2e4320029db
setSchedulerLevel(SchedulerLevel::FOREGROUND);
- if (virDomainShutdown(mDom.get()) < 0) {
+ if (virDomainShutdownFlags(mDom.get(), VIR_DOMAIN_SHUTDOWN_SIGNAL) < 0) {
LOGE(mId << ": Error while shutting down the container:\n"
<< libvirt::libvirtFormatError());
throw ContainerOperationException();