ia64/xen-unstable

changeset 16975:4e9b5427f2d8

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>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 04 13:44:29 2008 +0000 (2008-02-04)
parents 90844659c458
children 7e6a705e8ec5
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Mon Feb 04 13:42:53 2008 +0000
     1.2 +++ b/tools/python/xen/xend/image.py	Mon Feb 04 13:44:29 2008 +0000
     1.3 @@ -329,7 +329,7 @@ class ImageHandler:
     1.4              return
     1.5          if self.pid:
     1.6              try:
     1.7 -                os.kill(self.pid, signal.SIGKILL)
     1.8 +                os.kill(self.pid, signal.SIGHUP)
     1.9              except OSError, exn:
    1.10                  log.exception(exn)
    1.11              try: