Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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 :
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
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)>