ioemu: use SIGHUP instead of SIGKILL
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 4 Feb 2008 13:44:29 +0000 (13:44 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 4 Feb 2008 13:44:29 +0000 (13:44 +0000)
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>
tools/python/xen/xend/image.py

index 02ea81c74885342a64d6f9767a762baf027c3434..38b090f897719643ec2f4f3c712ed8e580435f15 100644 (file)
@@ -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: