Fix deadlock

This commit is contained in:
0x1eef 2023-11-28 12:46:14 -03:00
parent 57bf84c422
commit ddce65ea84

View file

@ -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