Method: Spring::Application#terminate

Defined in:
lib/spring/application.rb

#terminateObject



203
204
205
206
207
208
209
210
211
212
# File 'lib/spring/application.rb', line 203

def terminate
  if exiting?
    # Ensure that we do not ignore subsequent termination attempts
    log "forced exit"
    @waiting.each { |pid| Process.kill("TERM", pid) }
    Kernel.exit
  else
    state! :terminating
  end
end