From: Francis Cianfrocca Date: 2006-08-08T06:22:48+09:00 Subject: Re: Signaling Ruby from C/C++ Asterix, try this: #--------------------------------- rd,wr = IO.pipe Thread.new { loop { puts rd.readpartial(1) } } loop { sleep 1 wr.write "+" } #--------------------------------- This works on Linux but I haven't tested it on Windows. And you're right, if you try to use Kernel#select in the reader loop, it doesn't work reliably! (I'm using a Ruby 1.8.4 snapshot from early June, which has changes in nonblocking I/O.) This may be a Ruby bug. -- Posted via http://www.ruby-forum.com/.