0031-gcc-go-Fix-handling-of-signal-34-on-musl.patch (1944B)
1 From fc950e32b9ebc2bae09604ebe630df6df454151d Mon Sep 17 00:00:00 2001 2 From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> 3 Date: Sun, 30 Aug 2020 17:59:45 +0200 4 Subject: [PATCH] gcc-go: Fix handling of signal 34 on musl 5 MIME-Version: 1.0 6 Content-Type: text/plain; charset=UTF-8 7 Content-Transfer-Encoding: 8bit 8 9 Taken from Adélie Linux. 10 --- 11 libgo/mksigtab.sh | 6 ++++-- 12 1 file changed, 4 insertions(+), 2 deletions(-) 13 14 diff --git a/libgo/mksigtab.sh b/libgo/mksigtab.sh 15 index 11e4ec436bd..fe866eacb27 100644 16 --- a/libgo/mksigtab.sh 17 +++ b/libgo/mksigtab.sh 18 @@ -82,7 +82,7 @@ checksig _SIGPWR '{_SigNotify, "SIGPWR: power failure restart"}' 19 checksig _SIGEMT '{_SigThrow, "SIGEMT: emulate instruction executed"}' 20 checksig _SIGINFO '{_SigNotify, "SIGINFO: status request from keyboard"}' 21 checksig _SIGTHR '{_SigNotify, "SIGTHR: reserved"}' 22 -checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}' 23 +#checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}' 24 checksig _SIGWAITING '{_SigNotify, "SIGWAITING: reserved signal no longer used by"}' 25 checksig _SIGLWP '{_SigNotify, "SIGLWP: reserved signal no longer used by"}' 26 checksig _SIGFREEZE '{_SigNotify, "SIGFREEZE: special signal used by CPR"}' 27 @@ -95,10 +95,12 @@ checksig _SIGLOST ' {_SigNotify, "SIGLOST: resource lost (Sun); server died (G 28 29 # Special handling of signals 32 and 33 on GNU/Linux systems, 30 # because they are special to glibc. 31 +# Signal 34 is additionally special to Linux systems with musl. 32 if test "${GOOS}" = "linux"; then 33 - SIGLIST=$SIGLIST"_32__33_" 34 + SIGLIST=$SIGLIST"_32__33__34_" 35 echo ' 32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */' 36 echo ' 33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */' 37 + echo ' 34: {_SigSetStack + _SigUnblock, "signal 34"}, /* see issue 30062 */' 38 fi 39 40 if test "${GOOS}" = "aix"; then 41 -- 42 2.31.1 43