From: "Ara.T.Howard" Date: 2004-04-28T22:04:08+09:00 Subject: Re: DRb & thread blocking. On Wed, 28 Apr 2004, daz wrote: > > Ara.T.Howard wrote: > > > > ken- > > > > so far, this seems to work fine on my box? what's you platform/arch/ruby > > version, etc? > > > > -a > > > > Posting with OE6, I guess the answer's going to be Windows. > > So gets() blocks everything. > > If anyone knows the work-around to this, please add. > > daz in linux this should work, but doesn't (threads) require 'io/nonblock' buf = io.nonblock{io.read} this is lame, but might work (i don't know if io/wait is in windows inst) buf = '' buf << io.getc while io.ready? don't know much about the windows ruby... -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328 | URL :: http://www.ngdc.noaa.gov/stp/ | TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done ===============================================================================