If the domain is destroyed (eg with xl destroy), it is possible that
the xl which is monitoring the domain for restart/preserve will not be
able to get the domain shutdown reason.
Before this patch, it would then ignore the domain death event and
carry on waiting, forever, for more events.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
ret = 0;
goto out;
}
+ } else {
+ LOG("Unable to get domain death info, quitting");
+ goto out;
}
break;
case LIBXL_EVENT_DISK_EJECT: