From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATH] ioemu: use SIGHUP instead of SIGKILL Date: Mon, 4 Feb 2008 11:07:30 +0000 Message-ID: <20080204110730.GA6936@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 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: