mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-07 21:25:21 -05:00
Update loop position so trap handler is used
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user