From: matz@... (Yukihiro Matsumoto) Date: 2003-08-03T00:26:39+09:00 Subject: Re: 1.8.0-previewX rb_sys_fail() on socket instead of an Exception. Hello, In message "Re: 1.8.0-previewX rb_sys_fail() on socket instead of an Exception." on 03/08/02, ts writes: | No, ruby has cleared errno (see the source of server.rb). The problem is | in ruby. I want to fix this. But I don't still understand the problem. * server.rb read the socket (by getc(3) in appendline). * getc returned EOF, which means end-of-file or error. * appendline called ferror(3) to determine if it's error, not EOF. * but errno is zero, so that rb_sys_fail() failed. right? So the question is under what situation that * getc(3) returns EOF * ferror(3) returns true * yet errno == 0 and what I can do for the situation like this. matz.