|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][2/9] Don't leave behind zombie device model processe
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 70b6d0307a45 -r c8178e8ff103 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Thu Jul 14 17:28:24 2005
+++ b/tools/python/xen/xend/image.py Thu Jul 14 20:22:54 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH][2/9] Don't leave behind zombie device model processes,
Arun Sharma <=
|
|
|
|
|