WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Handle introduce_domain failing when the domain is alrea

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Handle introduce_domain failing when the domain is already introduced.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Jul 2005 14:30:13 -0400
Delivery-date: Wed, 27 Jul 2005 18:30:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 06c5924b0c2ed0ca144e6e9408c6fc85d30b1339
# Parent  de1207b85ef88aabcfbed18b2fbfc840db6dc373
Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r de1207b85ef8 -r 06c5924b0c2e tools/python/xen/xend/xenstore/xsnode.py
--- a/tools/python/xen/xend/xenstore/xsnode.py  Wed Jul 27 17:17:09 2005
+++ b/tools/python/xen/xend/xenstore/xsnode.py  Wed Jul 27 18:31:03 2005
@@ -350,7 +350,13 @@
             self.watchThread = None
 
     def introduceDomain(self, dom, page, evtchn, path):
-        self.getxs().introduce_domain(dom, page, evtchn.port1, path)
+        try:
+            self.getxs().introduce_domain(dom, page, evtchn.port1, path)
+        except RuntimeError, ex:
+            if ex.args[0] == errno.EISCONN:
+                return None
+            else:
+                raise
 
     def releaseDomain(self, dom):
         self.getxs().release_domain(dom)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Handle introduce_domain failing when the domain is already introduced., Xen patchbot -unstable <=