aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/runtime.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-12-04 01:35:53 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-12-04 01:35:53 +0000
commit50312b2ff0e52bcbc8e8ff3bec3b229608c289f4 (patch)
tree40e137bd17d666555f65975199da69548e154609 /libgo/runtime/runtime.c
parent4924840463062d1ef13633b8bb864042c5c08c4b (diff)
downloadgcc-50312b2ff0e52bcbc8e8ff3bec3b229608c289f4.zip
gcc-50312b2ff0e52bcbc8e8ff3bec3b229608c289f4.tar.gz
gcc-50312b2ff0e52bcbc8e8ff3bec3b229608c289f4.tar.bz2
runtime: Use pthread_sigmask instead of sigprocmask.
From-SVN: r205652
Diffstat (limited to 'libgo/runtime/runtime.c')
-rw-r--r--libgo/runtime/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c
index 56fc045..8fbc916 100644
--- a/libgo/runtime/runtime.c
+++ b/libgo/runtime/runtime.c
@@ -256,7 +256,7 @@ runtime_minit(void)
runtime_signalstack(m->gsignalstack, m->gsignalstacksize);
if (sigemptyset(&sigs) != 0)
runtime_throw("sigemptyset");
- sigprocmask(SIG_SETMASK, &sigs, nil);
+ pthread_sigmask(SIG_SETMASK, &sigs, nil);
}
// Called from dropm to undo the effect of an minit.