From 2ab2bfaf2faa15fbfe5e28a09a9b0e1124d48a9c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 22 Sep 2012 05:54:19 +1000 Subject: [PATCH] [release-branch.go1] syscall: apply comment from Mikioh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport d191515c80fb syscall: apply comment from Mikioh This comment was suggested in CL 6456045 but never got applied. R=mikioh, mikioh.mikioh CC=golang-dev https://golang.org/cl/6447056 »»» --- src/pkg/syscall/syscall_bsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/syscall/syscall_bsd.go b/src/pkg/syscall/syscall_bsd.go index 1d873b69ac..37f01c886e 100644 --- a/src/pkg/syscall/syscall_bsd.go +++ b/src/pkg/syscall/syscall_bsd.go @@ -304,7 +304,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) { if err != nil { return } - if len == 0 { + if runtime.GOOS == "darwin" && len == 0 { // Accepted socket has no address. // This is likely due to a bug in xnu kernels, // where instead of ECONNABORTED error socket -- 2.51.0