diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2019-04-04 22:25:47 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-04-05 12:26:18 +0300 |
commit | 367d588e59bd384bf7a50ed68ec8fabfc02ff12e (patch) | |
tree | 08246be76eece9387438f0ff60b2a201ae8ec9f6 | |
parent | a5da9128ebbe2df954b43c0127f00ef0d4d15ed4 (diff) |
Cygwin: signals: make setcontext work from signal handlers
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/exceptions.cc | 1 |
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. */ |