Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.5
    • Fix Version/s: JRuby 1.7.5
    • Component/s: Standard Library
    • Labels:
      None
    • Environment:
      Mac OSX.
    • Number of attachments :
      0

      Description

      It appears Open3.popen3(...) is broken on JRuby in 1.9 mode.
      On 1.8.7, it returns three arguments (stdin, stdout, and stderr).
      On 1.9.X, it returns (stdin, stdout, stderr, and a thread).

      You can use the thread argument to access a Process::Status object,
      and the PID of the spawned command.

      To reproduce:

      stdin, stdout, stderr, thr = Open3.popen3 "ls"
      thr.value # => NoMethodError (called on nil)

      Thanks!

        Issue Links

          Activity

            People

            • Assignee:
              Charles Oliver Nutter
              Reporter:
              Robert Gleeson
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: