OSDN Git Service

* cygheap.cc (cygheap_fixup_in_child): Don't close parent handle here. Let the
[pf3gnuchains/pf3gnuchains3x.git] / winsup / cygwin / gendef
index b31d71b..4f60ea6 100755 (executable)
@@ -104,10 +104,14 @@ __sigfe_maybe:
        pushl   %ebx
        pushl   %edx
        movl    %fs:4,%ebx                              # location of bottom of stack
+       addl    \$$tls::initialized,%ebx                # where we will be looking
+       cmpl    %ebx,%esp                               # stack loc > than tls
+       jge     0f                                      # yep.  we don't have a tls.
+       subl    \$$tls::initialized,%ebx                # where we will be looking
        movl    $tls::initialized(%ebx),%eax
        cmpl    \$0xc763173f,%eax                       # initialized?
        je      1f
-       popl    %edx
+0:     popl    %edx
        popl    %ebx
        ret