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