Cleanup newlines in Commands::Serve
This commit is contained in:
parent
c926596be7
commit
4b8bb68e56
|
@ -23,10 +23,7 @@ module Jekyll
|
||||||
Process.detach(pid)
|
Process.detach(pid)
|
||||||
Jekyll.logger.info "Server detatched with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
|
Jekyll.logger.info "Server detatched with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
|
||||||
else # create a new server thread, then join it with current terminal
|
else # create a new server thread, then join it with current terminal
|
||||||
t = Thread.new {
|
t = Thread.new { s.start }
|
||||||
|
|
||||||
s.start
|
|
||||||
}
|
|
||||||
trap("INT") { s.shutdown }
|
trap("INT") { s.shutdown }
|
||||||
t.join()
|
t.join()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue