Cygwin: signals: make setcontext work from signal handlers

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-04-04 21:25:47 +02:00
parent 6a06c6bc8f
commit c5f9eed1c0
1 changed files with 1 additions and 0 deletions

View File

@ -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. */