From: Tanaka Akira Date: 2005-01-22T14:20:31+09:00 Subject: Re: Interrupted system call and telnet.rb In article <873bwujbzp.fsf@coco.kazmier.com>, Pete Kazmier writes: > Has anyone else experienced an interrupted system call when using > telnet.rb? I use it frequently to do a large provisioning job which > very rarely completes because read(2) gets interrupted. The call to > read(2) in made by this line in telnet.rb: > > c = @sock.sysread(1024 * 1024) I think there is another option: readpartial. It restarts read(2) on EINTR (and EAGIN). It is available since 1.8.3, though. -- Tanaka Akira