# HG changeset patch # User Mahlon E. Smith # Date 1400254107 25200 # Node ID 6177a734f7649899e738ad72470246c7532384e2 # Parent 3972315383b38a1d6d95cc6ed333039c3b269a58 Zombie killer. Make sure we reap our children, even if they are misbehaving. diff -r 3972315383b3 -r 6177a734f764 lib/symphony/tasks/ssh.rb --- a/lib/symphony/tasks/ssh.rb Tue May 13 14:38:21 2014 -0700 +++ b/lib/symphony/tasks/ssh.rb Fri May 16 08:28:27 2014 -0700 @@ -158,7 +158,10 @@ @output = @output.split("\n").reject{|l| l =~ SSH_CLEANUP }.join self.log.debug " run block done." - pid, status = Process.waitpid2( pid ) + status = nil + + ensure + pid, status = Process.waitpid2( pid ) if pid return status end