From 1f243708d933208f28a4933bf25bc0cc97476da2 Mon Sep 17 00:00:00 2001 From: "g@localhost.localdomain" <> Date: Fri, 23 Feb 2007 00:00:03 +0100 Subject: [PATCH] Don't leave zombies, for example when we reconnect --- gsh/remote_dispatcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsh/remote_dispatcher.py b/gsh/remote_dispatcher.py index ed095c6..b0ea981 100644 --- a/gsh/remote_dispatcher.py +++ b/gsh/remote_dispatcher.py @@ -128,6 +128,8 @@ class remote_dispatcher(buffered_dispatcher): self.launch_ssh(options, hostname) sys.exit(1) # Parent + while os.waitpid(-1, os.WNOHANG) != (0, 0): + pass self.hostname = hostname buffered_dispatcher.__init__(self, fd) self.options = options -- 2.11.4.GIT