missed this in previous checkin

This commit is contained in:
Christopher Faylor 2011-11-24 21:38:17 +00:00
parent ef8bff85be
commit e553226cfa
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
2011-11-24 Christopher Faylor <me.cygwin2011@cgf.cx>
* cygthread.h (cygthread::name): Default name to "main" if we are early
* cygthread.cc (cygthread::name): Default name to "main" if we are early
in the process of setting up the DLL and no name is known.
* dcrt0.cc (initial_env): Remove CYGWIN_SLEEP stuff.
(get_cygwin_startup_info): Activate strace here as appropriate.

View File

@ -258,12 +258,15 @@ cygthread::name (DWORD tid)
break;
}
if (!res)
if (res)
/* ok */;
else if (!_main_tls)
res = "main";
else
{
__small_sprintf (_my_tls.locals.unknown_thread_name, "unknown (%p)", tid);
res = _my_tls.locals.unknown_thread_name;
}
return res;
}