]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: signals: setcontext: fix setting sigmask
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 5 Apr 2019 10:13:44 +0000 (12:13 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 5 Apr 2019 10:13:44 +0000 (12:13 +0200)
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/exceptions.cc

index e5e770370e615c40e199fb4ff01d2db215b8c6c3..1765f43b5cba9676e2c6b1f5b4cbfb87b28d1015 100644 (file)
@@ -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
This page took 0.030544 seconds and 5 git commands to generate.