Update loop position so trap handler is used

This commit is contained in:
Tom Bell 2012-12-18 21:41:18 +00:00
parent 72f99eb8a7
commit d8f328b87c
1 changed files with 2 additions and 2 deletions

View File

@ -69,12 +69,12 @@ module Jekyll
dw.start
unless options['serving']
loop { sleep 1000 }
trap("INT") do
puts "Stopping auto-regeneration..."
exit 0
end
loop { sleep 1000 }
end
end
end