All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATH] ioemu: use SIGHUP instead of SIGKILL
@ 2008-02-04 11:07 Samuel Thibault
  2008-02-04 11:21 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Thibault @ 2008-02-04 11:07 UTC (permalink / raw)
  To: xen-devel

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>

diff -r 2407a61c0d30 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py	Mon Feb 04 11:04:13 2008 +0000
+++ b/tools/python/xen/xend/image.py	Mon Feb 04 11:04:32 2008 +0000
@@ -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:

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-04 12:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-04 11:07 [PATH] ioemu: use SIGHUP instead of SIGKILL Samuel Thibault
2008-02-04 11:21 ` Keir Fraser
2008-02-04 11:26   ` Samuel Thibault
2008-02-04 12:00     ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.