summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc')
-rw-r--r--llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc8
1 files changed, 8 insertions, 0 deletions
diff --git a/llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc b/llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc
index 78535980239..d9537c2ebbc 100644
--- a/llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc
+++ b/llgo/third_party/gofrontend/libgo/runtime/sigqueue.goc
@@ -156,6 +156,14 @@ func signal_disable(s uint32) {
runtime_sigdisable(s);
}
+// Must only be called from a single goroutine at a time.
+func signal_ignore(s uint32) {
+ if (s >= nelem(sig.wanted)*32)
+ return;
+ sig.wanted[s/32] &= ~(1U<<(s&31));
+ runtime_sigignore(s);
+}
+
// This runs on a foreign stack, without an m or a g. No stack split.
void
runtime_badsignal(int sig)
OpenPOWER on IntegriCloud