mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
This commit is contained in:
1 parent
b490b3db06
commit
264f5caa68
1 file changed
+1
-1
@@ -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:
|
||||
|
||||