* sigproc.cc (remove_proc): Don't terminate the currently executing thread.

This commit is contained in:
Christopher Faylor
2011-11-29 15:34:49 +00:00
parent d1fc77322f
commit 480b13a37a
9 changed files with 219 additions and 136 deletions

View File

@ -1135,7 +1135,10 @@ static bool __stdcall
remove_proc (int ci)
{
if (have_execed)
procs[ci].wait_thread->terminate_thread ();
{
if (_my_tls._ctinfo != procs[ci].wait_thread)
procs[ci].wait_thread->terminate_thread ();
}
else if (procs[ci]->exists ())
return true;