4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-30 02:50:25 +08:00

* gendef (sigbe): Reset "incyg" while the stack lock is active to avoid a

potential race.
This commit is contained in:
Christopher Faylor 2007-08-09 17:20:09 +00:00
parent 7d5f6c1887
commit a680a53258
2 changed files with 6 additions and 1 deletions

View 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

View File

@ -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