lib/run_loop/lldb.rb in run_loop-1.5.6 vs lib/run_loop/lldb.rb in run_loop-2.0.0

- old
+ new

@@ -31,23 +31,22 @@ end # Attempts to gracefully kill all running lldb processes. def self.kill_lldb_processes self.lldb_pids.each do |pid| - unless self.kill_with_signal(pid, 'TERM') - self.kill_with_signal(pid, 'KILL') - end + self.kill_with_signal(pid, 'KILL') end end private # @!visibility private LLDB_FIND_PIDS_CMD = 'ps x -o pid,command | grep -v grep | grep lldb' # @!visibility private def self.kill_with_signal(pid, signal) - RunLoop::ProcessTerminator.new(pid, signal, 'lldb').kill_process + options = {:timeout => 1.0, :delay => 0.1} + RunLoop::ProcessTerminator.new(pid, signal, 'lldb', options).kill_process end end end