From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATH] ioemu: use SIGHUP instead of SIGKILL
Date: Mon, 4 Feb 2008 11:07:30 +0000 [thread overview]
Message-ID: <20080204110730.GA6936@implementation.uk.xensource.com> (raw)
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:
next reply other threads:[~2008-02-04 11:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 11:07 Samuel Thibault [this message]
2008-02-04 11:21 ` [PATH] ioemu: use SIGHUP instead of SIGKILL Keir Fraser
2008-02-04 11:26 ` Samuel Thibault
2008-02-04 12:00 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080204110730.GA6936@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.