* dcrt0.cc (dll_crt0_0): Don't do fixup_after_exec if dynamically loaded since
the state of fds is unknown at this point.
This commit is contained in:
parent
ac674bc896
commit
4f7544bc97
|
@ -1,3 +1,8 @@
|
||||||
|
2005-05-16 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* dcrt0.cc (dll_crt0_0): Don't do fixup_after_exec if dynamically
|
||||||
|
loaded since the state of fds is unknown at this point.
|
||||||
|
|
||||||
2005-05-16 Christopher Faylor <cgf@timesys.com>
|
2005-05-16 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF.
|
* include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF.
|
||||||
|
|
|
@ -650,7 +650,6 @@ dll_crt0_0 ()
|
||||||
|
|
||||||
(void) SetErrorMode (SEM_FAILCRITICALERRORS);
|
(void) SetErrorMode (SEM_FAILCRITICALERRORS);
|
||||||
|
|
||||||
|
|
||||||
device::init ();
|
device::init ();
|
||||||
do_global_ctors (&__CTOR_LIST__, 1);
|
do_global_ctors (&__CTOR_LIST__, 1);
|
||||||
cygthread::init ();
|
cygthread::init ();
|
||||||
|
@ -686,7 +685,8 @@ dll_crt0_0 ()
|
||||||
__argv = spawn_info->moreinfo->argv;
|
__argv = spawn_info->moreinfo->argv;
|
||||||
envp = spawn_info->moreinfo->envp;
|
envp = spawn_info->moreinfo->envp;
|
||||||
envc = spawn_info->moreinfo->envc;
|
envc = spawn_info->moreinfo->envc;
|
||||||
cygheap->fdtab.fixup_after_exec ();
|
if (!dynamically_loaded)
|
||||||
|
cygheap->fdtab.fixup_after_exec ();
|
||||||
signal_fixup_after_exec ();
|
signal_fixup_after_exec ();
|
||||||
if (spawn_info->moreinfo->old_title)
|
if (spawn_info->moreinfo->old_title)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue