From 5ef9bbc874c0f3210f84cd36adddfcd69cee2962 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 25 Feb 2004 01:19:13 +0000 Subject: * dcrt0.cc (_dll_crt0): Don't check sync_startup if threadfunc_ix is set. * external.cc (cygwin_internal): Implement CW_GET_BINMODE. * include/sys/cygwin.h: Declare CW_GET_BINMODE. --- winsup/cygwin/dcrt0.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') 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."); -- cgit v1.2.3