mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/webrick] Allow shutdown_pipe to be passed in via @config
30152b4bf9
This commit is contained in:
parent
c12c7fea70
commit
f64bea6d66
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue