lib/symphony/tasks/ssh.rb
changeset 6 5afabb9d8a2c
parent 5 6177a734f764
child 7 4321943b8db5
equal deleted inserted replaced
5:6177a734f764 6:5afabb9d8a2c
   159 		self.log.debug "  run block done."
   159 		self.log.debug "  run block done."
   160 
   160 
   161 		status = nil
   161 		status = nil
   162 
   162 
   163 	ensure
   163 	ensure
   164 		pid, status = Process.waitpid2( pid ) if pid
   164 		if pid
       
   165 			Process.kill( :TERM, pid )
       
   166 			pid, status = Process.waitpid2( pid )
       
   167 		end
   165 		return status
   168 		return status
   166 	end
   169 	end
   167 
   170 
   168 end # Symphony::Task::SSH
   171 end # Symphony::Task::SSH
   169 
   172