xend: Sleep before sending SIGKILL to device model diff -r c9dc7dcacc1d tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Mon Jan 26 11:22:03 2009 +0000 +++ b/tools/python/xen/xend/image.py Wed Jan 28 16:25:06 2009 +0900 @@ -574,7 +574,9 @@ # This is expected if Xend has been restarted within the # life of this domain. In this case, we can kill the process, # but we can't wait for it because it's not our child. - # We just make really sure it's going away (SIGKILL) first. + # We just sleep for a reasonable period of time and + # make really sure it's going away (SIGKILL) first. + time.sleep(2) os.kill(self.pid, signal.SIGKILL) state = xstransact.Remove("/local/domain/0/device-model/%i" % self.vm.getDomid())