[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxenctrl: xc_destroy_domain() handles EAGAIN.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1188571408 -3600
# Node ID ca093818050990ae9042272dc7ed5a3f205d2862
# Parent  5ee379a1f0d00f72a3a4ef1a38b6ef2abfffc80f
libxenctrl: xc_destroy_domain() handles EAGAIN.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 tools/libxc/xc_domain.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -r 5ee379a1f0d0 -r ca0938180509 tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c   Fri Aug 31 14:14:14 2007 +0100
+++ b/tools/libxc/xc_domain.c   Fri Aug 31 15:43:28 2007 +0100
@@ -55,10 +55,14 @@ int xc_domain_destroy(int xc_handle,
 int xc_domain_destroy(int xc_handle,
                       uint32_t domid)
 {
+    int ret;
     DECLARE_DOMCTL;
     domctl.cmd = XEN_DOMCTL_destroydomain;
     domctl.domain = (domid_t)domid;
-    return do_domctl(xc_handle, &domctl);
+    do {
+        ret = do_domctl(xc_handle, &domctl);
+    } while ( ret && (errno == EAGAIN) );
+    return ret;
 }
 
 int xc_domain_shutdown(int xc_handle,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.