From 4a813fb46881a7d03680ceafee9fa086adb0b995 Mon Sep 17 00:00:00 2001 From: Joshua Moody Date: Sat, 31 Dec 2016 07:07:31 +0100 Subject: [PATCH] CoreSim: fix #term_or_kill; needs to call process KILL --- lib/run_loop/core_simulator.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/run_loop/core_simulator.rb b/lib/run_loop/core_simulator.rb index 211621de..08cbdd11 100644 --- a/lib/run_loop/core_simulator.rb +++ b/lib/run_loop/core_simulator.rb @@ -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