Update loop position so trap handler is used
This commit is contained in:
parent
72f99eb8a7
commit
d8f328b87c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue