From 1410d46b30526f3e4fd1148fe5fb19f83550aab2 Mon Sep 17 00:00:00 2001 From: Alex Johnson Date: Thu, 7 Nov 2013 03:45:17 +0530 Subject: Move interrupt information to print_boot_information method --- railties/lib/rails/commands/server.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 4b4cf74623..1e90c57fb4 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -62,7 +62,7 @@ module Rails def start print_boot_information - trap_interrupt_and_print_interrupt_information + trap(:INT) { exit } create_tmp_directories log_to_stdout if options[:log_stdout] @@ -116,10 +116,7 @@ module Rails if options[:Host].to_s.match(/0\.0\.0\.0/) puts "=> Notice: server is listening on all interfaces (#{ options[:Host] }). Consider using 127.0.0.1 (--binding option)" end - end - def trap_interrupt_and_print_interrupt_information - trap(:INT) { exit } puts "=> Ctrl-C to shutdown server" unless options[:daemonize] end -- cgit v1.2.3