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-04 22:25:47 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-04-05 12:26:18 +0300
commit367d588e59bd384bf7a50ed68ec8fabfc02ff12e (patch)
tree08246be76eece9387438f0ff60b2a201ae8ec9f6
parenta5da9128ebbe2df954b43c0127f00ef0d4d15ed4 (diff)
Cygwin: signals: make setcontext work from signal handlers
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/exceptions.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index a9b378133..0aaeee52f 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -1867,6 +1867,7 @@ setcontext (const ucontext_t *ucp)
{
PCONTEXT ctx = (PCONTEXT) &ucp->uc_mcontext;
_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
RtlRestoreContext is the blessed way. */