All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2/9] Don't leave behind zombie device model processes
@ 2005-07-25 21:00 Arun Sharma
  0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2005-07-25 21:00 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

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>

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-25 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 21:00 [PATCH][2/9] Don't leave behind zombie device model processes Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.