]> Cypherpunks repositories - gostls13.git/commit
runtime: in TestSpuriousWakeupsNeverHangSemasleep, wait for the runtime to register...
authorBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 19:30:40 +0000 (14:30 -0500)
committerBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 20:34:30 +0000 (20:34 +0000)
commit17aa21279965f5d088606639c17aa60208a34b7d
treea49aeceac95ef10810d2f09418f52e6862452a51
parent773f43b35638092f9c0dc56f4a468dce2eb3a8ef
runtime: in TestSpuriousWakeupsNeverHangSemasleep, wait for the runtime to register handlers

According to https://man7.org/linux/man-pages/man7/signal.7.html, the
default behavior of SIGIO is to terminate the program. The Go runtime
changes that behavior with its own signal handler, so the program will
terminate if we send the signal before the runtime has finished
setting up.

Fixes #49727

Change-Id: I65db66f5176831c8d7454eebc0138d825c68e100
Reviewed-on: https://go-review.googlesource.com/c/go/+/366255
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/semasleep_test.go
src/runtime/testdata/testprog/sleep.go