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

Merge pull request #1630 from eregon/better-check-for-fork

Make the check for the availability of fork() more precise
This commit is contained in:
Richard Schneeman 2018-09-11 16:21:24 -05:00 committed by GitHub
commit 6f7dcc5f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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?