1
0
Fork 0
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:
John W Higgins 2020-05-30 14:57:55 -07:00 committed by Hiroshi SHIBATA
parent c12c7fea70
commit f64bea6d66

View file

@ -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