nuke the pid file if we forcibly kill

This commit is contained in:
John Bintz 2011-06-25 12:59:34 -04:00
parent d0901933c1
commit 63b9fcae98

View File

@ -1,3 +1,5 @@
require 'fileutils'
module Guard module Guard
class RailsRunner class RailsRunner
MAX_WAIT_COUNT = 10 MAX_WAIT_COUNT = 10
@ -71,6 +73,7 @@ module Guard
def kill_unmanaged_pid! def kill_unmanaged_pid!
if pid = unmanaged_pid if pid = unmanaged_pid
system %{kill -KILL #{pid}} system %{kill -KILL #{pid}}
FileUtils.rm pid_file
end end
end end