]> Cypherpunks repositories - gostls13.git/commit
runtime: ignore GNU/Linux sigaction errors for signals 32 and 33
authorIan Lance Taylor <iant@golang.org>
Wed, 25 Jul 2018 21:09:02 +0000 (14:09 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Jul 2018 21:30:24 +0000 (21:30 +0000)
commitc0e5485bd59827d6def05020b201133982a52790
treec73f1f597e1c92272954654d925f048138199bd3
parent5f5402b72313463a25c1bcacd559254834690d7e
runtime: ignore GNU/Linux sigaction errors for signals 32 and 33

This avoids problems when running under QEMU. It seems that at least
some QEMU versions turn the sigaction implementation into a call to
the C library sigaction function. The C library function will reject
attempts to set the signal handler for signals 32 and 33. Ignore
errors in that case.

Change-Id: Id443a9a32f6fb0ceef5c59a398e7ede30bf71646
Reviewed-on: https://go-review.googlesource.com/125955
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_linux.go