From: Jon Date: 2010-01-26T03:34:18+09:00 Subject: [ruby-core:27827] Re: [Bug #2619] Proposed method: Process.fork_supported? > Thanks but I'm fine. I currently use the following code: > > RUBY_ENGINE = defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "ruby" > def self.fork_supported? > # MRI >= 1.9.2's respond_to? returns false for methods > # that are not implemented. > return Process.respond_to?(:fork) && > RUBY_ENGINE != "jruby" && > RUBY_ENGINE != "macruby" && > Config::CONFIG['target_os'] !~ /mswin|windows/ > end FYIW, 1.9.1p243 of the RC1 from http://rubyinstaller.org/ does... C:\Users\Jon\Documents>ruby -e "require 'rbconfig'; puts Config::CONFIG['target_os']" mingw32