WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Don't leave behind zombie device model processes

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Don't leave behind zombie device model processes
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Jul 2005 17:04:12 -0400
Delivery-date: Mon, 25 Jul 2005 21:04:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID edc6e8921dd1a7c539b1c340f83761ff40db4526
# Parent  3acc0ae6a00186a12ccf18ee277d053274a8ad61

Don't leave behind zombie device model processes

Signed-off-by: Edwin Zhai <edwin.zhai@xxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>

diff -r 3acc0ae6a001 -r edc6e8921dd1 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Mon Jul 25 21:01:42 2005
+++ b/tools/python/xen/xend/image.py    Mon Jul 25 21:01:57 2005
@@ -352,8 +352,9 @@
 
     def destroy(self):
         channel.eventChannelClose(self.device_channel)
-        os.system("kill -KILL"
-                + " %d" % self.pid)
+        import signal
+        os.kill(self.pid, signal.SIGKILL)
+        (pid, status) = os.waitpid(self.pid, 0)
 
     def getDomainMemory(self, mem_mb):
         return (mem_mb * 1024) + self.getPageTableSize(mem_mb)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Don't leave behind zombie device model processes, Xen patchbot -unstable <=