Hi, got the following different between jruby1.1.5 and cruby1.8.6 on Mac
10.5.5 :
xli:~$ jruby -J-Djruby.fork.enabled=true -S irb
WARNING: fork is highly unlikely to be safe or stable on the JVM. Have
fun!
irb(main):015:0> Process.fork{};Process.waitall
=> [[11452, #<Process::Status: pid=???,exited(5)>]]
irb(main):016:0> $?
=> #<Process::Status: pid=???,exited(5)>
irb(main):017:0> $?.exitstatus
=> 5
Ruby 1.8.6:
xli:~$ irb
Process.fork{};Process.waitall
=> [[11497, #<Process::Status: pid=11497,exited(0)>]]
$?.exitstatus
=> 0
I couldn’t find bug/issue at http://jira.codehaus.org/browse/JRUBY,
Is it a bug?
–
Cheers,
Li Xiao