diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-04 01:35:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-04 01:35:53 +0000 |
commit | 50312b2ff0e52bcbc8e8ff3bec3b229608c289f4 (patch) | |
tree | 40e137bd17d666555f65975199da69548e154609 /libgo/runtime/proc.c | |
parent | 4924840463062d1ef13633b8bb864042c5c08c4b (diff) | |
download | gcc-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/proc.c')
-rw-r--r-- | libgo/runtime/proc.c | 4 |
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"); |