re PR go/48019 (Need to handle EINTR in libgo testsuite)

PR go/48019
Ignore EINTR in socket connect.

From-SVN: r170811
This commit is contained in:
Ian Lance Taylor 2011-03-09 06:57:04 +00:00
parent 7b5e671326
commit a33d93c3df
1 changed files with 3 additions and 0 deletions

View 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)