diff options
| author | Ian Lance Taylor <iant@golang.org> | 2016-11-14 16:50:15 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2016-11-15 05:35:54 +0000 |
| commit | b687d6a7886fe7ffea0e36072c2a882c8c485838 (patch) | |
| tree | 77ae860bc554c3e85701ea7386c6335f686f105e /src/plugin/plugin_dlopen.go | |
| parent | 1e917312511f6ce54bbdcea8cd0c25e66973d49e (diff) | |
| download | go-b687d6a7886fe7ffea0e36072c2a882c8c485838.tar.xz | |
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>
Diffstat (limited to 'src/plugin/plugin_dlopen.go')
0 files changed, 0 insertions, 0 deletions
