summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-04-04 21:25:47 +0200
committerCorinna Vinschen <corinna@vinschen.de>2019-04-04 21:25:47 +0200
commitc5f9eed1c045ad05e968c9a9b8fb22b1d46cd8ea (patch)
tree434d14d7de10e7b8dd6e97b081be80acc7681df6
parent6a06c6bc8f8492ea09aa3ae180fe94e4ac265611 (diff)
downloadcygnal-c5f9eed1c045ad05e968c9a9b8fb22b1d46cd8ea.tar.gz
cygnal-c5f9eed1c045ad05e968c9a9b8fb22b1d46cd8ea.tar.bz2
cygnal-c5f9eed1c045ad05e968c9a9b8fb22b1d46cd8ea.zip
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. */