* cygtls.cc (_cygtls::call2): Don't call ExitThread on the main thread.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | ||||
| 2006-05-30  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* cygtls.cc (_cygtls::call2): Don't call ExitThread on the main thread. | ||||
|  | ||||
| 2006-05-29  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* winf.h (MAXCYGWINCMDLEN): Set down size to 30000 or suffer fork | ||||
|   | ||||
| @@ -73,6 +73,9 @@ _cygtls::call2 (DWORD (*func) (void *, void *), void *arg, void *buf) | ||||
|   init_thread (buf, func); | ||||
|   DWORD res = func (arg, buf); | ||||
|   remove (INFINITE); | ||||
|   /* Don't call ExitThread on the main thread since we may have been | ||||
|      dynamically loaded.  */ | ||||
|   if (this != _main_tls) | ||||
|     ExitThread (res); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user