Cygwin: signals: setcontext: fix setting sigmask

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-04-05 12:13:44 +02:00
parent 367d588e59
commit 54923ed173
1 changed files with 1 additions and 1 deletions

View File

@ -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