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:
parent
7b5e671326
commit
a33d93c3df
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user