ruby-changes:63073
From: John <ko1@a...>
Date: Thu, 24 Sep 2020 21:42:28 +0900 (JST)
Subject: [ruby-changes:63073] f64bea6d66 (master): [ruby/webrick] Allow shutdown_pipe to be passed in via @config
https://git.ruby-lang.org/ruby.git/commit/?id=f64bea6d66 From f64bea6d66335daf799c2223b7f4bc0d099424cb Mon Sep 17 00:00:00 2001 From: John W Higgins <wishdev@g...> Date: Sat, 30 May 2020 14:57:55 -0700 Subject: [ruby/webrick] Allow shutdown_pipe to be passed in via @config https://github.com/ruby/webrick/commit/30152b4bf9 diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index fd6b7a6..01976fe 100644 --- a/lib/webrick/server.rb +++ b/lib/webrick/server.rb @@ -100,7 +100,7 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/server.rb#L100 @logger.info("ruby #{rubyv}") @listeners = [] - @shutdown_pipe = nil + @shutdown_pipe = @config[:ShutdownPipe] unless @config[:DoNotListen] raise ArgumentError, "Port must an integer" unless @config[:Port].to_s == @config[:Port].to_i.to_s -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/