mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Don't leave behind zombie device model processes
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com>
This commit is contained in:
1 parent
7ba92c7b98
commit
ae7da5d7f3
1 file changed
+3
-2
@@ -352,8 +352,9 @@ class VmxImageHandler(ImageHandler):
|
||||
|
||||
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)
|
||||
|
||||