re PR go/48019 (Need to handle EINTR in libgo testsuite)
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 9 Mar 2011 06:57:04 +0000 (06:57 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 9 Mar 2011 06:57:04 +0000 (06:57 +0000)
PR go/48019
Ignore EINTR in socket connect.

From-SVN: r170811

libgo/go/net/sock.go

index 8ad3548add41cd34757ac0aec0a99cf595623d53..5a88ddcbc29341f6d4ef120d9706b20e2f04e6f9 100644 (file)
@@ -54,6 +54,9 @@ func socket(net string, f, p, t int, la, ra syscall.Sockaddr, toAddr func(syscal
 
        if ra != nil {
                e = syscall.Connect(s, ra)
+               for e == syscall.EINTR {
+                       e = syscall.Connect(s, ra)
+               }
                if e != 0 {
                        closesocket(s)
                        return nil, os.Errno(e)