mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Remove RUBY_VERSION checks (#1827)
This commit is contained in:
parent
38d96258c2
commit
a2cc0537a4
1 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ module Puma
|
|||
|
||||
argv = restart_args
|
||||
Dir.chdir(@restart_dir)
|
||||
argv += [redirects] if RUBY_VERSION >= '1.9'
|
||||
argv += [redirects]
|
||||
Kernel.exec(*argv)
|
||||
end
|
||||
end
|
||||
|
@ -281,7 +281,7 @@ module Puma
|
|||
wild = File.expand_path(File.join(puma_lib_dir, "../bin/puma-wild"))
|
||||
args = [Gem.ruby, wild, '-I', dirs.join(':'), deps.join(',')] + @original_argv
|
||||
# Ruby 2.0+ defaults to true which breaks socket activation
|
||||
args += [{:close_others => false}] if RUBY_VERSION >= '2.0'
|
||||
args += [{:close_others => false}]
|
||||
Kernel.exec(*args)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue