[MacRuby] #1282: MacRuby does not finish with Kernel.spawn when use the IO.pipe as stdin of child process.

MacRuby ruby-noreply at macosforge.org
Wed May 18 01:23:50 PDT 2011


#1282: MacRuby does not finish with Kernel.spawn when use the IO.pipe as stdin of
child process.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  major                 |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 #!ruby
 in_c, in_p = IO.pipe
 opt = {:in => in_c }

 args = ""
 pid = spawn("ruby", args, opt)
 in_p.write "puts 1234"
 in_p.close

 Process.wait pid
 }}}

 Result:
 {{{
 $ ruby19 t.rb
 1234

 $ macruby t.rb  # needs force quit
 ^C-: Interrupt

 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1282>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list