summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-04 01:35:53 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-04 01:35:53 +0000
commit0431e6cc28c75cc368090fd9041aeb08337de5d1 (patch)
tree40e137bd17d666555f65975199da69548e154609 /libgo
parent6cb797fd31640c93e1a5f9367af5a213b80321b6 (diff)
downloadgcc-0431e6cc28c75cc368090fd9041aeb08337de5d1.tar.gz
runtime: Use pthread_sigmask instead of sigprocmask.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/go-signal.c2
-rw-r--r--libgo/runtime/proc.c4
-rw-r--r--libgo/runtime/runtime.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c
index 73bd8371b8f..1624122dace 100644
--- a/libgo/runtime/go-signal.c
+++ b/libgo/runtime/go-signal.c
@@ -252,7 +252,7 @@ sig_panic_leadin (int sig)
/* The signal handler blocked signals; unblock them. */
i = sigfillset (&clear);
__go_assert (i == 0);
- i = sigprocmask (SIG_UNBLOCK, &clear, NULL);
+ i = pthread_sigmask (SIG_UNBLOCK, &clear, NULL);
__go_assert (i == 0);
}
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 47a472b6d0a..19afee3cd7a 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -208,9 +208,9 @@ runtime_newosproc(M *mp)
#endif
sigemptyset(&old);
- sigprocmask(SIG_BLOCK, &clear, &old);
+ pthread_sigmask(SIG_BLOCK, &clear, &old);
ret = pthread_create(&tid, &attr, runtime_mstart, mp);
- sigprocmask(SIG_SETMASK, &old, nil);
+ pthread_sigmask(SIG_SETMASK, &old, nil);
if (ret != 0)
runtime_throw("pthread_create");
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c
index 56fc045eac8..8fbc916fcfa 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.