missed this in previous checkin
This commit is contained in:
parent
ef8bff85be
commit
e553226cfa
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue