[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] ioemu: use SIGHUP instead of SIGKILL
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1202132669 0 # Node ID 4e9b5427f2d83c3cccd18c9262b6126fc61f1191 # Parent 90844659c4582a3098b6ff67cfa12eadf2b4666a 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@xxxxxxxxxxxxx> --- tools/python/xen/xend/image.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 90844659c458 -r 4e9b5427f2d8 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Mon Feb 04 13:42:53 2008 +0000 +++ b/tools/python/xen/xend/image.py Mon Feb 04 13:44:29 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: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |