From 54923ed173d18d60bd85064c46c2d36d69584e16 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 5 Apr 2019 12:13:44 +0200 Subject: Cygwin: signals: setcontext: fix setting sigmask Signed-off-by: Corinna Vinschen --- 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 0aaeee52f..14eac95ca 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1866,7 +1866,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 -- cgit v1.2.3