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
|
end
|
||||||
|
|
||||||
task watch: %w[build] do
|
task watch: %w[build] do
|
||||||
warn "[build] Acquire lock..."
|
|
||||||
lockf.lock
|
|
||||||
require "listen"
|
require "listen"
|
||||||
Listen.to File.join(Dir.getwd, "src"), force_polling: true do
|
Listen.to File.join(Dir.getwd, "src"), force_polling: true do
|
||||||
sh "rake build"
|
sh "rake build"
|
||||||
|
@ -51,9 +49,6 @@ namespace :nanoc do
|
||||||
rescue Interrupt
|
rescue Interrupt
|
||||||
warn "SIGINT: exit"
|
warn "SIGINT: exit"
|
||||||
exit
|
exit
|
||||||
ensure
|
|
||||||
warn "[build] Release lock..."
|
|
||||||
lockf.release
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue