Hi,

In message "[ruby-talk:25417] Re: BUG? Solaris select or poll does not recover correctly when signaled"
    on 01/11/16, Ville Mattila <mulperi / iki.fi> writes:

|>  Can you try to protect all call to select(2) in eval.c against
|>  ERESTART.

|        I did this modification to rb_thread_select and Invalid socket
|        problem seems to be gone. Thank you very much! This
|        fix is probably correct on Solaris, as for example solaris 8
|        source code includes similar check in truss program.

I will merge this modification.  Thank you, Guy.

							matz.