From: Vladimir Sizikov Date: 2010-01-22T03:49:42+09:00 Subject: [ruby-core:27662] Re: [Bug #2619] Proposed method: Process.fork_supported? On Thu, Jan 21, 2010 at 10:53 AM, Tanaka Akira wrote: > 2010/1/21 Hongli Lai : > >> This always returns true even on platforms where fork is not actually supported. See >> my Redmine reply. > > respond_to? returns false for methods which is not implemented since 1.9.2. I should probably also add that this is close to impossible to implement on JRuby (and I assume on IronRuby too, and maybe some others). In case of JRuby, we build once and then the resulting product can be used on various platforms, so those platform specific things are queried at runtime. In some cases we just invoke a native functions via FFI at runtime and only then would see NotImplementedError out of those calls. So, basically, untill the method is executed, we can't really know whether it is supported or not on some platforms. So, this new behavior is not "portable" in a sense that it won't work on all 1.9.2-compatible implementations, which would only add to confusion. Thanks, --Vladimir