Skip to content

Commit

Permalink
Remove RUBY_VERSION checks (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrrbakry authored and nateberkopec committed Jun 27, 2019
1 parent 38d9625 commit a2cc053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def restart!

argv = restart_args
Dir.chdir(@restart_dir)
argv += [redirects] if RUBY_VERSION >= '1.9'
argv += [redirects]
Kernel.exec(*argv)
end
end
Expand Down Expand Up @@ -281,7 +281,7 @@ def prune_bundler
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
Expand Down

0 comments on commit a2cc053

Please sign in to comment.