aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r--libgo/runtime/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 47a472b..19afee3 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");