From: Maggie Xiao Date: 2002-07-19T04:04:38+09:00 Subject: Re: What is the EIO error? 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 > > > "Maggie Xiao" wrote in message > news:3D386E59@webmail.ualberta.ca... > > Hi there, > > > > I meet a problem when I try to read an input character from keyboard in a > > subprocess; the error message is :ERRNO:EIO.a > > part of my code is as follow: > > fork{f=STDIN.GETC > > while not(f==101) > > .... > > .... > > end > > } > > Anyone can tell me what's wrong with my code? And how to fix it? Where I > can > > find the description of the error? Thanks. > > > > Maggie > > > > >