Skip to content

Commit

Permalink
CoreSim: fix #term_or_kill; needs to call process KILL
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Dec 31, 2016
1 parent 12795c6 commit 4a813fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/run_loop/core_simulator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,9 @@ def self.term_or_kill(process_name, send_term_first)
killed = term.kill_process
end

unless killed
RunLoop::ProcessTerminator.new(pid, 'KILL', process_name, kill_options)
if !killed
term = RunLoop::ProcessTerminator.new(pid, 'KILL', process_name, kill_options)
term.kill_process
end
end
end
Expand Down

0 comments on commit 4a813fb

Please sign in to comment.