Method: Spring::Application#run

Defined in:
lib/spring-jruby/application.rb

#runObject



119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/spring-jruby/application.rb', line 119

def run
  state :running
  notify_manager_ready

  loop do
    IO.select [manager, @interrupt.first]

    if terminating? || watcher_stale? || preload_failed?
      exit
    else
      serve IOWrapper.recv_io(manager, UNIXSocket).to_io
    end
  end
end