Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-04-05 13:13:44 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-04-05 13:17:38 +0300
commit54923ed173d18d60bd85064c46c2d36d69584e16 (patch)
tree87938c07ca3f670dbc0bd46518d274cc5c26ccf7
parent367d588e59bd384bf7a50ed68ec8fabfc02ff12e (diff)
Cygwin: signals: setcontext: fix setting sigmask
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/exceptions.cc2
1 files changed, 1 insertions, 1 deletions
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