* sigproc.cc (proc_terminate): Release sync_proc_subproc when done terminating

or suffer potential hangs.
(get_proc_lock): Reorganize debugging output slightly.
This commit is contained in:
Christopher Faylor 2004-03-16 05:05:22 +00:00
parent e867f8f1d4
commit fbdfd5f8a9
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-03-16 Christopher Faylor <cgf@redhat.com>
* sigproc.cc (proc_terminate): Release sync_proc_subproc when done
terminating or suffer potential hangs.
(get_proc_lock): Reorganize debugging output slightly.
2004-03-15 Christopher Faylor <cgf@redhat.com> 2004-03-15 Christopher Faylor <cgf@redhat.com>
* cygtls.cc (_cygtls::fixup_after_fork): Just manipulate the signal * cygtls.cc (_cygtls::fixup_after_fork): Just manipulate the signal

View File

@ -214,7 +214,7 @@ get_proc_lock (DWORD what, DWORD val)
sigproc_printf ("sync_proc_subproc is NULL (2)"); sigproc_printf ("sync_proc_subproc is NULL (2)");
return false; return false;
} }
system_printf ("Couldn't aquire sync_proc_subproc for(%d,%d), %E, last %d", system_printf ("Couldn't aquire sync_proc_subproc for(%d,%d), last %d, %E",
what, val, lastwhat); what, val, lastwhat);
return true; return true;
} }
@ -538,6 +538,7 @@ proc_terminate (void)
pchildren[i].release (); pchildren[i].release ();
} }
nchildren = nzombies = 0; nchildren = nzombies = 0;
sync_proc_subproc->release ();
} }
sigproc_printf ("leaving"); sigproc_printf ("leaving");
} }