diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index eebfe7a642..b86cc3907a 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -256,7 +256,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 - argv += [{:close_others => false}] if RUBY_VERSION >= '2.0' + args += [{:close_others => false}] if RUBY_VERSION >= '2.0' Kernel.exec(*args) end end