1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Make the check for the availability of fork() more precise

This commit is contained in:
Benoit Daloze 2018-08-09 10:46:03 +02:00
parent b9a499d4c8
commit 545dbd8a18

View file

@ -63,8 +63,8 @@ module Puma
generate_restart_data
if clustered? && (Puma.jruby? || Puma.windows?)
unsupported 'worker mode not supported on JRuby or Windows'
if clustered? && !Process.respond_to?(:fork)
unsupported "worker mode not supported on #{RUBY_ENGINE} on this platform"
end
if @options[:daemon] && Puma.windows?