summaryrefslogtreecommitdiff
path: root/lib/webrick/server.rb
diff options
context:
space:
mode:
authorJohn W Higgins <wishdev@gmail.com>2020-05-30 14:57:55 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-24 21:37:06 +0900
commitf64bea6d66335daf799c2223b7f4bc0d099424cb (patch)
treedef65ca9bcb63a8f692003e205bc6ea85ba4456c /lib/webrick/server.rb
parentc12c7fea70e80474d290a76ebbcc6badec705c6e (diff)
[ruby/webrick] Allow shutdown_pipe to be passed in via @config
https://github.com/ruby/webrick/commit/30152b4bf9
Diffstat (limited to 'lib/webrick/server.rb')
-rw-r--r--lib/webrick/server.rb2
1 files changed, 1 insertions, 1 deletions
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
@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