1
0
mirror of https://github.com/golang/go synced 2024-11-23 13:20:09 -07:00
go/misc/cgo
Ian Lance Taylor 80acfe950f runtime/cgo: retry pthread_create on EAGAIN for OpenBSD
For reasons that I do not know, OpenBSD does not call pthread_create
directly, but instead looks it up in libpthread.so. That means that we
can't use the code used on other systems to retry pthread_create on
EAGAIN, since that code simply calls pthread_create.

This patch copies that code to an OpenBSD-specific version.

Also, check for an EAGAIN failure in the test, as that seems to be the
underlying cause of the test failure on several systems including OpenBSD.

Fixes #18146.

Change-Id: I3bceaa1e03a7eaebc2da19c9cc146b25b59243ef
Reviewed-on: https://go-review.googlesource.com/33905
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-05 21:15:05 +00:00
..
errors cmd/cgo: run cgo pointer checks for pointer to union 2016-11-15 17:10:52 +00:00
fortran misc/cgo/fortran: fix gfortran compile test 2016-05-04 15:08:16 +00:00
gmp all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
life all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
nocgo
stdio all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
test runtime/cgo: retry pthread_create on EAGAIN for OpenBSD 2016-12-05 21:15:05 +00:00
testasan
testcarchive Revert "runtime: handle SIGPIPE in c-archive and c-shared programs" 2016-12-01 11:23:17 +00:00
testcshared misc/cgo/testcshared: add explicit ./ to shared library argument 2016-11-19 04:31:36 +00:00
testgodefs cmd/cgo: add -srcdir option 2016-10-30 19:14:08 +00:00
testplugin cmd/link: handle R_GOTPCREL separately on darwin 2016-11-16 18:37:03 +00:00
testsanitizers runtime/cgo: use libc for sigaction syscalls when possible 2016-11-16 05:38:38 +00:00
testshared cmd/compile, runtime: make the go.itab.* symbols module-local 2016-10-27 19:13:35 +00:00
testsigfwd misc/cgo/testsigfwd: add missing return statement 2016-08-30 21:44:14 +00:00
testso
testsovar
testtls all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00