* Makefile.in (new-cygwin1.dll): Reorganize library order.
* dcrt0.cc (do_exit): Move thread stuff after vfork stuff or threads are terminated during vfork. * sigproc.cc (proc_terminate): Grab proc lock prior to signalling subproc thread exit to avoid an extra "wait-for-thread-to-exit".
This commit is contained in:
@ -457,10 +457,10 @@ proc_terminate (void)
|
||||
if (hwait_subproc)
|
||||
{
|
||||
proc_loop_wait = 0; // Tell wait_subproc thread to exit
|
||||
sync_proc_subproc->acquire (WPSP);
|
||||
wake_wait_subproc (); // Wake wait_subproc loop
|
||||
hwait_subproc = NULL;
|
||||
|
||||
sync_proc_subproc->acquire (WPSP);
|
||||
(void) proc_subproc (PROC_CLEARWAIT, 1);
|
||||
|
||||
/* Clean out zombie processes from the pid list. */
|
||||
|
Reference in New Issue
Block a user