missed this in previous checkin
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
| 2011-11-24  Christopher Faylor  <me.cygwin2011@cgf.cx> | 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. | 	in the process of setting up the DLL and no name is known. | ||||||
| 	* dcrt0.cc (initial_env): Remove CYGWIN_SLEEP stuff. | 	* dcrt0.cc (initial_env): Remove CYGWIN_SLEEP stuff. | ||||||
| 	(get_cygwin_startup_info): Activate strace here as appropriate. | 	(get_cygwin_startup_info): Activate strace here as appropriate. | ||||||
|   | |||||||
| @@ -258,12 +258,15 @@ cygthread::name (DWORD tid) | |||||||
| 	break; | 	break; | ||||||
|       } |       } | ||||||
|  |  | ||||||
|   if (!res) |   if (res) | ||||||
|  |     /* ok */; | ||||||
|  |   else if (!_main_tls) | ||||||
|  |     res = "main"; | ||||||
|  |   else | ||||||
|     { |     { | ||||||
|       __small_sprintf (_my_tls.locals.unknown_thread_name, "unknown (%p)", tid); |       __small_sprintf (_my_tls.locals.unknown_thread_name, "unknown (%p)", tid); | ||||||
|       res = _my_tls.locals.unknown_thread_name; |       res = _my_tls.locals.unknown_thread_name; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   return res; |   return res; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user