Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: None
-
Labels:None
-
Environment:jruby 1.5.2 (ruby 1.8.7 patchlevel 249) (2010-08-20 1c5e29d) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java]
-
Testcase included:yes
-
Number of attachments :
Description
Currently if you run a system call attempting to call jruby, you can get mysterious, unexpected results.
ex:
>> system("jruby --server -e 3")
jruby: unknown option --server
=> false
However, in reality there is not even a jruby.exe in my path, so this is a doubly mistaken error.
Also it can cause problems when testing, etc:
http://groups.google.com/group/jruby-users/browse_thread/thread/9690d3f4027a9ea6
http://www.ruby-forum.com/topic/204508
Since this is an "optimization" to make things faster in specific instances, it is surprising in other instances, so this is a request to turn it off by default.
Thanks!
-r
Having it default to true also prevents one from, by default, being able to use multiple sub-processes to run jruby (this is what got me, today).
(0..20).map{|n| Thread.new
{ system("jruby -e 'sleep 10'") }}.each
{|th| th.join}Also, it appears others have shared this opinion:
http://www.mail-archive.com/dev@jruby.codehaus.org/msg02874.html