From 8488f79f5df8d9bfb175a4dde4d7bec4cda08b72 Mon Sep 17 00:00:00 2001 From: lxnay Date: Sun, 2 Nov 2008 11:09:38 +0000 Subject: [PATCH] Entropy/SocketHostInterface: - handle(): kill the zombie process after timeout git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2620 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/entropy.py b/libraries/entropy.py index 22e8ff279..42d25d0e1 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -13655,6 +13655,9 @@ class SocketHostInterface: if e.errno != 10: raise dead = True if dead or (seconds > my_timeout): + if not dead: + import signal + os.kill(pid,signal.SIGKILL) break else: self.do_handle()