diff options
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index eba2348be..1848fa8e9 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -910,7 +910,10 @@ extern "C" void __stdcall _dll_crt0 () { extern HANDLE sync_startup; - if (!sync_startup) + extern unsigned threadfunc_ix; + if (threadfunc_ix) + /* nothing to do */; + else if (!sync_startup) system_printf ("internal error: sync_startup not called at start. Expect signal problems."); else { @@ -918,7 +921,6 @@ _dll_crt0 () CloseHandle (sync_startup); } - extern unsigned threadfunc_ix; if (!threadfunc_ix) system_printf ("internal error: couldn't determine location of thread function on stack. Expect signal problems."); |