Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-12-16 09:27:15 +0400
committerChristopher Faylor <me@cgf.cx>2011-12-16 09:27:15 +0400
commit08e4b6acb7c26e77fd1b52b063838459207d1708 (patch)
tree3642704eb095f8264deb093957ece77a7678e39d /winsup/cygwin/gendef
parente553b822e2eacd12285f30fd89b5738e7f4dbb20 (diff)
* exceptions.cc (_cygtls::call_signal_handler): Fix debugging to not go to
console. * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Add temporary kludge to work around problem of make closing a handler while it is being read. * gendef (sigdelayed): Don't call a function if sig has been cleared. * sigproc.h (cygwait): Simplify slightly.
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