2022-02-21 16:53:02 +00:00
|
|
|
From af64f915a4717036a7f1fe637308b455c94e0f1e Mon Sep 17 00:00:00 2001
|
2020-09-04 19:21:25 +00:00
|
|
|
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
|
|
|
|
Date: Sun, 30 Aug 2020 18:03:03 +0200
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] gcc-go: signal 34 is special on musl libc
|
2020-09-04 19:21:25 +00:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Taken from Adélie Linux.
|
|
|
|
---
|
|
|
|
libgo/go/runtime/signal_gccgo.go | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/libgo/go/runtime/signal_gccgo.go b/libgo/go/runtime/signal_gccgo.go
|
2021-11-25 09:09:10 +00:00
|
|
|
index 2eece687e35..e86490ce203 100644
|
2020-09-04 19:21:25 +00:00
|
|
|
--- a/libgo/go/runtime/signal_gccgo.go
|
|
|
|
+++ b/libgo/go/runtime/signal_gccgo.go
|
|
|
|
@@ -106,7 +106,7 @@ func getsig(i uint32) uintptr {
|
|
|
|
if sigaction(i, nil, &sa) < 0 {
|
|
|
|
// On GNU/Linux glibc rejects attempts to call
|
|
|
|
// sigaction with signal 32 (SIGCANCEL) or 33 (SIGSETXID).
|
|
|
|
- if GOOS == "linux" && (i == 32 || i == 33) {
|
|
|
|
+ if GOOS == "linux" && (i == 32 || i == 33 || i == 34) {
|
|
|
|
return _SIG_DFL
|
|
|
|
}
|
|
|
|
throw("sigaction read failure")
|
2020-11-13 10:30:52 +00:00
|
|
|
--
|
2022-02-21 16:53:02 +00:00
|
|
|
2.35.1
|
2020-11-13 10:30:52 +00:00
|
|
|
|