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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user