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:
commit
6f7dcc5f22
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue