* sigproc.cc (exit_thread): undef ExitThread or suffer recursion. Attempt to

lock process prior to calling sig_send.
This commit is contained in:
Christopher Faylor
2012-12-22 03:14:37 +00:00
parent c3a4634985
commit d3a03427bc
3 changed files with 11 additions and 4 deletions

View File

@ -48,9 +48,9 @@ class lock_process
public:
static void init () {locker.init ("lock_process");}
void dont_bother () {skip_unlock = true;}
lock_process (bool exiting = false)
lock_process (bool exiting = false, DWORD howlong = INFINITE)
{
locker.acquire ();
locker.acquire (howlong);
skip_unlock = exiting;
if (exiting && exit_state < ES_PROCESS_LOCKED)
exit_state = ES_PROCESS_LOCKED;