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
This commit is contained in:
lxnay
2008-11-02 11:09:38 +00:00
parent 14e7821fd0
commit 8488f79f5d

View File

@@ -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()