Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-22 5410dc0) (Java HotSpot(TM) Client VM 1.6.0_10) [Windows XP-x86-java]
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      >> a = IO.popen("ruby.exe -e sleep")
      => #<IO:0x1fb050c>
      >> a.close # this call should never return
      => nil
      >> $?
      => #<Process::Status: pid=????,exited(1)>

      You'll notice that it returns prematurely. This works with 1.5.5, but not HEAD. Not sure if this is an issue on Linux as well or not.
      Cheers!
      -r

        Activity

        Hide
        Hiro Asari added a comment -

        This occurs on OS X as well.

        $ jruby -ve 'a=IO.popen("jruby -e sleep"); a.close; p $?'
        jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-25 04ce8b7) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
        #<Process::Status: pid=????,exited(143)>
        
        Show
        Hiro Asari added a comment - This occurs on OS X as well. $ jruby -ve 'a=IO.popen("jruby -e sleep"); a.close; p $?' jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-25 04ce8b7) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] #<Process::Status: pid=????,exited(143)>

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Roger Pack
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: