From: Ian Jackson Date: Thu, 16 Dec 2010 17:39:24 +0000 (+0000) Subject: tools/xl: fix race which can leave an xl monitor processing hanging X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08d26f71bcb73e9f799515324539cb0348ce1c00;p=xen.git tools/xl: fix race which can leave an xl monitor processing hanging 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 --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index a0d5da0826..33a54033b1 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1848,6 +1848,9 @@ start: ret = 0; goto out; } + } else { + LOG("Unable to get domain death info, quitting"); + goto out; } break; case LIBXL_EVENT_DISK_EJECT: