[newlib-cygwin] Cygwin: signals: setcontext: fix setting sigmask

Corinna Vinschen corinna@sourceware.org
Fri Apr 5 10:16:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=372874364eb2752ac095f55172de3dc11372f03f

commit 372874364eb2752ac095f55172de3dc11372f03f
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Apr 5 12:13:44 2019 +0200

    Cygwin: signals: setcontext: fix setting sigmask
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/exceptions.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index e5e7703..1765f43 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -1875,7 +1875,7 @@ extern "C" int
 setcontext (const ucontext_t *ucp)
 {
   PCONTEXT ctx = (PCONTEXT) &ucp->uc_mcontext;
-  _my_tls.sigmask = ucp->uc_sigmask;
+  set_signal_mask (_my_tls.sigmask, ucp->uc_sigmask);
   _my_tls.incyg = true;
 #ifdef __x86_64__
   /* Apparently a call to NtContinue works on 64 bit as well, but using



More information about the Cygwin-cvs mailing list