Fix deadlock
This commit is contained in:
parent
57bf84c422
commit
ddce65ea84
1 changed files with 0 additions and 5 deletions
|
@ -41,8 +41,6 @@ namespace :nanoc do
|
|||
end
|
||||
|
||||
task watch: %w[build] do
|
||||
warn "[build] Acquire lock..."
|
||||
lockf.lock
|
||||
require "listen"
|
||||
Listen.to File.join(Dir.getwd, "src"), force_polling: true do
|
||||
sh "rake build"
|
||||
|
@ -51,9 +49,6 @@ namespace :nanoc do
|
|||
rescue Interrupt
|
||||
warn "SIGINT: exit"
|
||||
exit
|
||||
ensure
|
||||
warn "[build] Release lock..."
|
||||
lockf.release
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue