What is the EIO error?

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

Hi!

Aparently you eventually installe Ruby :slight_smile:

How is your project going?
Do you eventually like ruby?

Guille

···

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

Hi,

I think you would like to this:

a = Thread.new {
while not((f=STDIN.getc)==101)

end
}
a.join

“Maggie Xiao” mxiao@ee.ualberta.ca 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

Hi,

···

At Thu, 18 Jul 2002 14:28:00 +0900, Maggie Xiao wrote:

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
}

The parent process exited without waiting the child process, so
the shell took the control of the terminal away.


Nobu Nakada

Sorry…

The reply is configurated to send a message to the list, and I forgot
that point…

Sincere apologies.

Guille

Guillermo Fernandez wrote:

···

Hi!

Aparently you eventually installe Ruby :slight_smile:

How is your project going?
Do you eventually like ruby?

Guille

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

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” phasis@kornet.net
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
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” mxiao@ee.ualberta.ca 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

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” mxiao@ee.ualberta.ca 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” phasis@kornet.net
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
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

Hi,

···

At Fri, 19 Jul 2002 04:04:38 +0900, Maggie Xiao wrote:

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.

Then, how will you separate inputs to the child and to the
shell?


Nobu Nakada