direct-io.hg

changeset 5387:a4c65af08cf4

bitkeeper revision 1.1662.1.20 (42a8054awYd-HJnwjnXqXtWmKbE1Yw)

SrvDaemon.py:
Disable kill of xenstored on xend exit.
xu.c:
Set error reason in failure case.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Jun 09 09:00:58 2005 +0000 (2005-06-09)
parents c6c987d8999c
children cb9679a15acd
files tools/python/xen/lowlevel/xu/xu.c tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/lowlevel/xu/xu.c	Thu Jun 09 08:23:19 2005 +0000
     1.2 +++ b/tools/python/xen/lowlevel/xu/xu.c	Thu Jun 09 09:00:58 2005 +0000
     1.3 @@ -1370,7 +1370,8 @@ static PyObject *xu_port_new(PyObject *s
     1.4  
     1.5   fail1:
     1.6      PyObject_Del((PyObject *)xup);
     1.7 -    return NULL;    
     1.8 +    PyErr_SetString(PyExc_ValueError, "cannot create port");
     1.9 +    return NULL;
    1.10  }
    1.11  
    1.12  static PyObject *xu_port_getattr(PyObject *obj, char *name)
     2.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Thu Jun 09 08:23:19 2005 +0000
     2.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Thu Jun 09 09:00:58 2005 +0000
     2.3 @@ -130,7 +130,7 @@ class Daemon:
     2.4  
     2.5      def cleanup(self, kill=False):
     2.6          self.cleanup_xend(kill=kill)
     2.7 -        self.cleanup_xenstored(kill=kill)
     2.8 +        #self.cleanup_xenstored(kill=kill)
     2.9  
    2.10      def status(self):
    2.11          """Returns the status of the xend daemon.