From: Keir Fraser Date: Mon, 4 Feb 2008 13:44:29 +0000 (+0000) Subject: ioemu: use SIGHUP instead of SIGKILL X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14341^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=264f5caa68b8be8549b7092f6a8a9d7b03a929ba;p=xen.git ioemu: use SIGHUP instead of SIGKILL The stub domain device model needs to trap the termination signal so as to actually destroy the stub domain. SIGKILL can't be trapped, SIGTERM is caught by SDL and so may be unnoticed. SIGHUP can be trapped and is not caught by SDL (and by default causes a process termination without core). Signed-off-by: Samuel Thibault --- diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 02ea81c748..38b090f897 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -329,7 +329,7 @@ class ImageHandler: return if self.pid: try: - os.kill(self.pid, signal.SIGKILL) + os.kill(self.pid, signal.SIGHUP) except OSError, exn: log.exception(exn) try: