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:
kaf24@firebug.cl.cam.ac.uk committed 2005-07-25 21:01:57 +00:00
1 parent 7ba92c7b98
commit ae7da5d7f3
1 file changed
+3 -2
+3 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.