lib/henry/container.rb in henry-container-0.1.53 vs lib/henry/container.rb in henry-container-0.1.54

- old
+ new

@@ -110,19 +110,19 @@ # @params [Integer] pid the pid of the process to be killed. def kill_children(pid) begin children_pids = `ps o pid= --ppid #{pid}`.scan(/\d+/).collect(&:to_i) - return false if pids.count == 1 + return false if children_pids.count == 1 children_pids.each do |child_pid| begin Process.kill('KILL', child_pid) self.kill_children(child_pid) rescue Errno::ESRCH end - t g end + end rescue Errno::ENOENT warn 'Can not cleanup this process children' end end