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
1 changed files with 3 additions and 0 deletions

View File

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