* pinfo.cc (proc_waiter): Zero wait_thread in child to avoid races with process

termination.
* cygthread.cc (cygthread::terminate): Clumsily detect when h has gone away and
attempt no further action.
This commit is contained in:
Christopher Faylor
2004-12-22 16:59:03 +00:00
parent 9c0d960d7f
commit 9bc36097c9
3 changed files with 24 additions and 1 deletions

View File

@@ -763,6 +763,7 @@ proc_waiter (void *arg)
}
sigproc_printf ("exiting wait thread for pid %d", pid);
vchild.wait_thread = NULL;
_my_tls._ctinfo->release (); /* return the cygthread to the cygthread pool */
return 0;
}