aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/thread_linux.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-02-20 17:48:23 -0500
committerRuss Cox <rsc@golang.org>2013-02-20 17:48:23 -0500
commit6c976393aea607e67f4d31e3a2ae7b3c0dc15ade (patch)
tree7c168ce818eec974c9f28584a6497c616f4d8e6f /src/pkg/runtime/thread_linux.c
parent43da336b151993fa3b0d17dc443f5ba9d29d482f (diff)
downloadgo-6c976393aea607e67f4d31e3a2ae7b3c0dc15ade.tar.xz
runtime: allow cgo callbacks on non-Go threads
Fixes #4435. R=golang-dev, iant, alex.brainman, minux.ma, dvyukov CC=golang-dev https://golang.org/cl/7304104
Diffstat (limited to 'src/pkg/runtime/thread_linux.c')
-rw-r--r--src/pkg/runtime/thread_linux.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/runtime/thread_linux.c b/src/pkg/runtime/thread_linux.c
index fdd40c223e..02a5eaee2f 100644
--- a/src/pkg/runtime/thread_linux.c
+++ b/src/pkg/runtime/thread_linux.c
@@ -181,6 +181,13 @@ runtime·minit(void)
runtime·rtsigprocmask(SIG_SETMASK, &sigset_none, nil, sizeof(Sigset));
}
+// Called from dropm to undo the effect of an minit.
+void
+runtime·unminit(void)
+{
+ runtime·signalstack(nil, 0);
+}
+
void
runtime·sigpanic(void)
{