1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:40:09 -07:00
go/misc/cgo/testcarchive
Ian Lance Taylor b687d6a788 misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield
Apparently when GOMAXPROCS == 1 a simple sched_yield in a tight loop is
not necessarily sufficient to permit a signal handler to run. Instead,
sleep for 1/1000 of a second.

Fixes #16649.

Change-Id: I83910144228556e742b7a92a441732ef61aa49d9
Reviewed-on: https://go-review.googlesource.com/33239
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-15 05:35:54 +00:00
..
src misc/cgo/testcarchive: more robust TestSignalForwardingExternal 2016-03-26 02:40:12 +00:00
carchive_test.go misc/cgo/testcarchive: do not use same executable name in TestInstall 2016-10-17 00:34:12 +00:00
main2.c misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield 2016-11-15 05:35:54 +00:00
main3.c misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield 2016-11-15 05:35:54 +00:00
main4.c misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield 2016-11-15 05:35:54 +00:00
main5.c misc/cgo/testcarchive: more robust TestSignalForwardingExternal 2016-03-26 02:40:12 +00:00
main_unix.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00
main_windows.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00
main.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00