|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: package/.../musl/pkg/gcc/0037-gcc-go-signal-34-is-special-on-musl-libc.patch
|
|
# Copyright (C) 2020 The OpenSDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
# of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
From 75e274b0819c9a77ca121113301d353f7aa91740 Mon Sep 17 00:00:00 2001
|
|
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
|
|
Date: Sun, 30 Aug 2020 18:03:03 +0200
|
|
Subject: [PATCH] gcc-go: signal 34 is special on musl libc
|
|
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
|
|
index c555712a03c..9e228580d37 100644
|
|
--- 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")
|