diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-30 18:17:35 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-30 18:17:35 +0100 |
commit | 74d777c1fe04ba2921891c56b9fc888a2d5ebc51 (patch) | |
tree | 535e496596cc65016648b7bcaeef6771fe00da4a | |
parent | deferencing null is legal (diff) | |
download | slibc-74d777c1fe04ba2921891c56b9fc888a2d5ebc51.tar.gz slibc-74d777c1fe04ba2921891c56b9fc888a2d5ebc51.tar.bz2 slibc-74d777c1fe04ba2921891c56b9fc888a2d5ebc51.tar.xz |
needstack: use pthread_sigmask rather than sigprocmask
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r-- | src/alloca/needstack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloca/needstack.c b/src/alloca/needstack.c index f522eef..9fce7c2 100644 --- a/src/alloca/needstack.c +++ b/src/alloca/needstack.c @@ -58,12 +58,12 @@ int stack_will_overflow(intptr_t n) if (old_sigsegv_handler == SIG_ERR) return 1; - if (sigprocmask(SIG_UNBLOCK, &new_mask, &old_mask)) + if (pthread_sigmask(SIG_UNBLOCK, &new_mask, &old_mask)) return 1; (void) alloca((size_t)n); - if (sigprocmask(SIG_SETMASK, &old_mask, NULL)) + if (pthread_sigmask(SIG_SETMASK, &old_mask, NULL)) return 1; if (signal(SIGSEGV, old_sigsegv_handler) == SIG_ERR) |