Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: JRuby 1.6
    • Fix Version/s: None
    • Component/s: Ruby 1.9.2
    • Labels:
      None
    • Number of attachments :
      0

      Description

      open3.rb in 1.9 mode uses spawn rather than fork/exec, which is good. But it uses it with options that we don't support yet. We need to get spawn working properly or rework open3.rb to do whatever the "right thing" is for JRuby.

        Issue Links

          Activity

          Hide
          Jon added a comment -

          What's the latest thinking on this one and what spawn options are causing problems?

          The code path I'm most interested in at the moment is capture2e -> popen2e -> popen_run -> spawn

          Show
          Jon added a comment - What's the latest thinking on this one and what spawn options are causing problems? The code path I'm most interested in at the moment is capture2e -> popen2e -> popen_run -> spawn
          Hide
          Hiro Asari added a comment -

          I'll close this one in favor of JRUBY-6195, which has a bit more details.

          Show
          Hiro Asari added a comment - I'll close this one in favor of JRUBY-6195 , which has a bit more details.
          Hide
          Edward Anderson added a comment -

          For example:

          >   Open3.popen2e 'wget'
          file:/home/vagrant/.rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/kernel19/process.rb:14 warning: unsupported spawn option: in
          TypeError: wrong exec option: [:out, :err]
                  from org/jruby/RubyProcess.java:1067:in `_spawn_internal'
                  from file:/home/vagrant/.rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/kernel19/process.rb:13:in `spawn'
                  from file:/home/vagrant/.rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/kernel19/kernel.rb:29:in `spawn'
                  from /home/vagrant/.rvm/rubies/jruby-1.7.6/lib/ruby/1.9/open3.rb:204:in `popen_run'
                  from /home/vagrant/.rvm/rubies/jruby-1.7.6/lib/ruby/1.9/open3.rb:199:in `popen2e'
                  from (irb):4:in `evaluate'
          
          Show
          Edward Anderson added a comment - For example: > Open3.popen2e 'wget' file:/home/vagrant/.rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/kernel19/process.rb:14 warning: unsupported spawn option: in TypeError: wrong exec option: [:out, :err] from org/jruby/RubyProcess.java:1067:in `_spawn_internal' from file:/home/vagrant/.rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/kernel19/process.rb:13:in `spawn' from file:/home/vagrant/.rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/kernel19/kernel.rb:29:in `spawn' from /home/vagrant/.rvm/rubies/jruby-1.7.6/lib/ruby/1.9/open3.rb:204:in `popen_run' from /home/vagrant/.rvm/rubies/jruby-1.7.6/lib/ruby/1.9/open3.rb:199:in `popen2e' from (irb):4:in `evaluate'

            People

            • Assignee:
              Thomas E Enebo
              Reporter:
              Charles Oliver Nutter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: