[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: modify a warning log message
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1238582879 -3600 # Node ID 79f734040a8372ec9d0a93e76b0adeda7c141097 # Parent 5d701be7c37baa6652a706f3a2a8dd890fa58f73 xend: modify a warning log message Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> --- tools/python/xen/xend/image.py | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff -r 5d701be7c37b -r 79f734040a83 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Wed Apr 01 11:47:25 2009 +0100 +++ b/tools/python/xen/xend/image.py Wed Apr 01 11:47:59 2009 +0100 @@ -534,8 +534,8 @@ class ImageHandler: try: self.sentinel_fifo.read(1) except OSError, e: pass self.sentinel_lock.acquire() - try: - if self.pid: + if self.pid: + try: (p,st) = os.waitpid(self.pid, os.WNOHANG) if p == self.pid: message = oshelp.waitstatus_description(st) @@ -547,15 +547,15 @@ class ImageHandler: except: message = "malfunctioning or died ?" message = "pid %d: %s" % (self.pid, message) - else: - message = "no longer running" - except Exception, e: - message = "waitpid failed: %s" % utils.exception_string(e) - message = "device model failure: %s" % message - try: message += "; see %s " % self.logfile - except: pass - self._dmfailed(message) - self.pid = None + except Exception, e: + message = "waitpid failed: %s" % utils.exception_string(e) + message = "device model failure: %s" % message + try: message += "; see %s " % self.logfile + except: pass + self._dmfailed(message) + self.pid = None + else: + log.info("%s device model terminated", self.vm.getName()) self.sentinel_lock.release() def destroyDeviceModel(self): _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |