Affects Version/s: JRuby 1.3.1
Fix Version/s: None
Component/s: Core Classes/Modules
Environment:jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5) (fedora-18.b16.fc10-i386)
OpenJDK Client VM (build 14.0-b15, mixed mode)
Number of attachments :
The expected output is two timestamps with five seconds difference between them. Works as expected with MRI 1.8.6 and 1.9.1 JRuby, however, produces spurious results with one of the three outcomes:
1) works just like MRI
2) two timestamps are printed - one immediately after the other (no time difference)
3) No child processes - No child processes (Errno::ECHILD)
Running the script repeatedly will produce all of the results listed above. This behavior is observed with JRuby 1.2.0 on Fedora 10 and with JRuby 1.3.1 on Mac OS X.