From: Ian Lance Taylor Date: Wed, 9 Mar 2011 06:57:04 +0000 (+0000) Subject: re PR go/48019 (Need to handle EINTR in libgo testsuite) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a33d93c3df055e195bc293b9a2fa05e8699dbc83;p=gcc.git re PR go/48019 (Need to handle EINTR in libgo testsuite) PR go/48019 Ignore EINTR in socket connect. From-SVN: r170811 --- 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)