aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-02-04 13:44:29 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-02-04 13:44:29 +0000
commit264f5caa68b8be8549b7092f6a8a9d7b03a929ba (patch)
tree6f510f5e9a4fe86946ee9ab090a376122af60f9a /tools
parentb490b3db0688144a5cd1baa09c62b98ba6bf45b9 (diff)
downloadxen-264f5caa68b8be8549b7092f6a8a9d7b03a929ba.tar.gz
xen-264f5caa68b8be8549b7092f6a8a9d7b03a929ba.tar.bz2
xen-264f5caa68b8be8549b7092f6a8a9d7b03a929ba.zip
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 <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/image.py2
1 files changed, 1 insertions, 1 deletions
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: