From a33d93c3df055e195bc293b9a2fa05e8699dbc83 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 9 Mar 2011 06:57:04 +0000 Subject: [PATCH] re PR go/48019 (Need to handle EINTR in libgo testsuite) PR go/48019 Ignore EINTR in socket connect. From-SVN: r170811 --- libgo/go/net/sock.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgo/go/net/sock.go b/libgo/go/net/sock.go index 8ad3548add4..5a88ddcbc29 100644 --- a/libgo/go/net/sock.go +++ b/libgo/go/net/sock.go @@ -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) -- 2.30.2