projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b5e671
)
re PR go/48019 (Need to handle EINTR in libgo testsuite)
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 9 Mar 2011 06:57:04 +0000
(06:57 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/libgo/go/net/sock.go
b/libgo/go/net/sock.go
index 8ad3548add41cd34757ac0aec0a99cf595623d53..5a88ddcbc29341f6d4ef120d9706b20e2f04e6f9 100644
(file)
--- 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)