OSDN Git Service

* gendef (sigbe): Reset "incyg" while the stack lock is active to avoid a
authorcgf <cgf>
Thu, 9 Aug 2007 17:20:09 +0000 (17:20 +0000)
committercgf <cgf>
Thu, 9 Aug 2007 17:20:09 +0000 (17:20 +0000)
potential race.

winsup/cygwin/ChangeLog
winsup/cygwin/gendef

index 5fca04d..0e08931 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-09  Ernie Coskrey  <Ernie.Coskrey@steeleye.com>
+
+       * gendef (sigbe): Reset "incyg" while the stack lock is active to avoid
+       a potential race.
+
 2007-08-09  Corinna Vinschen  <corinna@vinschen.de>
 
        * syscalls.cc (rename): Close oldpath file handle immediately after
index 4f60ea6..0d7df4b 100755 (executable)
@@ -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