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