From: Ben Gribaudo Date: 2005-04-15T20:57:21+09:00 Subject: Re: EINTR Error Causing Failure in E-mail Sending Script Thank you for your thoughts, Tanaka. How would you suggest that I restart sysread? Have a great day, Ben Tanaka Akira wrote: >> def mail(message) >> begin >> Net::SMTP.start("localhost", 25) do |smtp| >> smtp.sendmail(message.to_s, message.from.address, >> message.to.address) >> end >> rescue Errno::EINTR >> retry >> end >> end ... >I'm not sure why EINTR. > >However I think it's better to restart sysread itself instead of >Net::SMTP.start. > >readpartial can be used instead since 1.8.3. readpartial doesn't >raise EINTR. > >