Cygwin: signals: make setcontext work from signal handlers
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		| @@ -1867,6 +1867,7 @@ setcontext (const ucontext_t *ucp) | |||||||
| { | { | ||||||
|   PCONTEXT ctx = (PCONTEXT) &ucp->uc_mcontext; |   PCONTEXT ctx = (PCONTEXT) &ucp->uc_mcontext; | ||||||
|   _my_tls.sigmask = ucp->uc_sigmask; |   _my_tls.sigmask = ucp->uc_sigmask; | ||||||
|  |   _my_tls.incyg = true; | ||||||
| #ifdef __x86_64__ | #ifdef __x86_64__ | ||||||
|   /* Apparently a call to NtContinue works on 64 bit as well, but using |   /* Apparently a call to NtContinue works on 64 bit as well, but using | ||||||
|      RtlRestoreContext is the blessed way. */ |      RtlRestoreContext is the blessed way. */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user