summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/gendef
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-xwinsup/cygwin/gendef4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef
index 0cd27341f..d20138ff7 100755
--- a/winsup/cygwin/gendef
+++ b/winsup/cygwin/gendef
@@ -221,6 +221,10 @@ _sigdelayed:
call _yield
jmp 1b
2: incl $tls::incyg(%ebx)
+ movl $tls::sig(%ebx),%eax
+ testl %eax,%eax
+ jz 4f # call_signal_handler may have beat us
+ # to it
pushl $tls::saved_errno(%ebx) # saved errno
call _set_process_mask_delta
pushl %eax