nuke the pid file if we forcibly kill
This commit is contained in:
parent
d0901933c1
commit
63b9fcae98
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user