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
|
dw.start
|
||||||
|
|
||||||
unless options['serving']
|
unless options['serving']
|
||||||
loop { sleep 1000 }
|
|
||||||
|
|
||||||
trap("INT") do
|
trap("INT") do
|
||||||
puts "Stopping auto-regeneration..."
|
puts "Stopping auto-regeneration..."
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
loop { sleep 1000 }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue