From: Park Heesob Date: 2002-07-19T10:19:59+09:00 Subject: Re: What is the EIO error? Hi, How about this: a = Thread.new { while not(Thread.current['f']==101) # do something end } while f=STDIN.getc a['f'] = f # do something end Park Heesob "Maggie Xiao" wrote in message news:001c01c22e8d$f0d8ed50$1800000a@ee.ualberta.ca... > Thanks, it works but the shell cannot accept my command while the child > process runs,but I need to be able to enter commands normally to the shell > at the same time. > Original Message ----- > From: "Park Heesob" > Newsgroups: comp.lang.ruby > To: "ruby-talk ML" > Sent: Thursday, July 18, 2002 12:09 AM > Subject: Re: What is the EIO error? > > > > Hi, > > > > I think you would like to this: > > > > a = Thread.new { > > while not((f=STDIN.getc)==101) > > .... > > end > > } > > a.join > > > >