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>2007-08-09 21:20:09 +0400
committerChristopher Faylor <me@cgf.cx>2007-08-09 21:20:09 +0400
commita680a5325833f7ac5c4ee2b272a6f529192ead54 (patch)
tree228194ff6a802d63f7662c4e4d703f1f18928eb9 /winsup/cygwin/gendef
parent7d5f6c188746c6682389cf8a7830d63fb3c9743b (diff)
* gendef (sigbe): Reset "incyg" while the stack lock is active to avoid a
potential race.
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-xwinsup/cygwin/gendef2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef
index 4f60ea686..0d7df4b09 100755
--- a/winsup/cygwin/gendef
+++ b/winsup/cygwin/gendef
@@ -158,9 +158,9 @@ __sigbe: # return here after cygwin syscall
xorl %edx,%edx
xchgl %edx,-4(%eax) # get return address from signal stack
xchgl %edx,8(%esp) # restore edx/real return address
+ decl $tls::incyg(%ebx)
decl $tls::stacklock(%ebx) # release lock
popl %eax
- decl $tls::incyg(%ebx)
popl %ebx
ret