From 545dbd8a189911ac4330601bfd87bedd7a593f5b Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 9 Aug 2018 10:46:03 +0200 Subject: [PATCH] Make the check for the availability of fork() more precise --- lib/puma/launcher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index c6ee7b77..e57250ce 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -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?