* dcrt0.cc (dll_crt0_1): Call cygwin_exit to ensure that destructors are
handled correctly.
This commit is contained in:
parent
d699bc988f
commit
a586e5b6ae
|
@ -1,3 +1,8 @@
|
||||||
|
2005-05-10 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* dcrt0.cc (dll_crt0_1): Call cygwin_exit to ensure that destructors
|
||||||
|
are handled correctly.
|
||||||
|
|
||||||
2005-05-10 Corinna Vinschen <corinna@vinschen.de>
|
2005-05-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (path_conv::check): Set correct file attributes for socket
|
* path.cc (path_conv::check): Set correct file attributes for socket
|
||||||
|
|
|
@ -41,6 +41,8 @@ details. */
|
||||||
|
|
||||||
#define PREMAIN_LEN (sizeof (user_data->premain) / sizeof (user_data->premain[0]))
|
#define PREMAIN_LEN (sizeof (user_data->premain) / sizeof (user_data->premain[0]))
|
||||||
|
|
||||||
|
extern "C" void cygwin_exit (int);
|
||||||
|
|
||||||
void ld_preload ();
|
void ld_preload ();
|
||||||
|
|
||||||
HANDLE NO_COPY hMainProc = (HANDLE) -1;
|
HANDLE NO_COPY hMainProc = (HANDLE) -1;
|
||||||
|
@ -885,7 +887,7 @@ dll_crt0_1 (char *)
|
||||||
wait_for_sigthread ();
|
wait_for_sigthread ();
|
||||||
ld_preload ();
|
ld_preload ();
|
||||||
if (user_data->main)
|
if (user_data->main)
|
||||||
exit (user_data->main (__argc, __argv, *user_data->envptr));
|
cygwin_exit (user_data->main (__argc, __argv, *user_data->envptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct _reent *
|
struct _reent *
|
||||||
|
|
Loading…
Reference in New Issue