direct-io.hg

changeset 5894:06c5924b0c2e

Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Jul 27 18:31:03 2005 +0000 (2005-07-27)
parents de1207b85ef8
children f24fcd22c68f
files tools/python/xen/xend/xenstore/xsnode.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xsnode.py	Wed Jul 27 17:17:09 2005 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xsnode.py	Wed Jul 27 18:31:03 2005 +0000
     1.3 @@ -350,7 +350,13 @@ class XenStore:
     1.4              self.watchThread = None
     1.5  
     1.6      def introduceDomain(self, dom, page, evtchn, path):
     1.7 -        self.getxs().introduce_domain(dom, page, evtchn.port1, path)
     1.8 +        try:
     1.9 +            self.getxs().introduce_domain(dom, page, evtchn.port1, path)
    1.10 +        except RuntimeError, ex:
    1.11 +            if ex.args[0] == errno.EISCONN:
    1.12 +                return None
    1.13 +            else:
    1.14 +                raise
    1.15  
    1.16      def releaseDomain(self, dom):
    1.17          self.getxs().release_domain(dom)