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

Process.respond_to?(:fork) is already defined as Puma.forkable?, so let's use it (#2793)

Co-authored-by: shields <shields@tablecheck.com>
This commit is contained in:
Johnny Shields 2022-01-10 00:07:15 +09:00 committed by GitHub
parent 66fc4e0abb
commit fd34c45732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ module Puma
generate_restart_data
if clustered? && !Process.respond_to?(:fork)
if clustered? && !Puma.forkable?
unsupported "worker mode not supported on #{RUBY_ENGINE} on this platform"
end