From 963b9e0ab257d24606f96d75d88f1081848ecda4 Mon Sep 17 00:00:00 2001 From: Darrin Holst Date: Mon, 30 Jan 2012 08:20:47 -0600 Subject: [PATCH] use SIGINT instead of KILL so the pid gets cleaned up --- lib/guard/rails/runner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/guard/rails/runner.rb b/lib/guard/rails/runner.rb index dff1d80..e457b43 100644 --- a/lib/guard/rails/runner.rb +++ b/lib/guard/rails/runner.rb @@ -18,9 +18,9 @@ module Guard def stop if File.file?(pid_file) - system %{kill -KILL #{File.read(pid_file).strip}} + system %{kill -SIGINT #{File.read(pid_file).strip}} wait_for_no_pid if $?.exitstatus == 0 - FileUtils.rm pid_file + FileUtils.rm pid_file, :force => true end end