Merge branch 'master' of github.com:johnbintz/guard-rails

This commit is contained in:
John Bintz 2012-06-12 14:12:55 -04:00
commit 885fc3c837
1 changed files with 2 additions and 2 deletions

View File

@ -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