Commits

Mahlon Smith committed 6177a73

Zombie killer. Make sure we reap our children, even if they are
misbehaving.

Comments (0)

Files changed (1)

lib/symphony/tasks/ssh.rb

 		@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