OSDN Git Service

* cygheap.cc (cygheap_fixup_in_child): Don't close parent handle here. Let the
authorcgf <cgf>
Fri, 2 Jun 2006 00:09:50 +0000 (00:09 +0000)
committercgf <cgf>
Fri, 2 Jun 2006 00:09:50 +0000 (00:09 +0000)
commitd02d8db9459f67fd89f21b58754a5a5e05f08a42
tree5582b630d8e971ab213fb8a318bcaf82d90a2a4e
parent5a047ac2a7e59c18c5a93d51eee51c40dd4b3465
* cygheap.cc (cygheap_fixup_in_child): Don't close parent handle here.  Let the
caller do that.
* dcrt0.cc (child_info_spawn::handle_spawn): Close parent handle here to allow
fixup_after_exec functions to use it.
* cygtls.cc (_cygtls::call2): Avoid calling exit thread if called with
*crt0_1 functions.
* cygtls.h (_cygtls::isinitialized): Check that we actually have a tls before
seeing if it is initialized.
* gendef (_sigfe_maybe): Ditto.
* dcrt0.cc (dll_crt0_1): Remove static, use just one argument.
* dll_init.cc (dllcrt0_info): New structure.
(dll_dllcrt0): Change into a front-end to renamed dll_dllcrt0_1 so that we'll
always be assured of having something like a tls.
(dll_dllcrt0_1): New function, basically renamed from from dll_dllcrt0.
Unconditionally call _my_tls.init_exception_handler now that we are assured of
having a tls.  Change variable name from "linking" to "linked".
* winsup.h (dll_crt0_1): Declare.
(dll_dllcrt0_1): Ditto.
winsup/cygwin/ChangeLog
winsup/cygwin/cygheap.cc
winsup/cygwin/cygtls.cc
winsup/cygwin/cygtls.h
winsup/cygwin/dcrt0.cc
winsup/cygwin/dll_init.cc
winsup/cygwin/gendef
winsup/cygwin/winsup.h