From 74d777c1fe04ba2921891c56b9fc888a2d5ebc51 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 30 Dec 2015 18:17:35 +0100 Subject: needstack: use pthread_sigmask rather than sigprocmask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/alloca/needstack.c | 4 ++-- 1 file 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) -- cgit v1.2.3-70-g09d2