* 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:
Christopher Faylor
2002-10-10 05:23:23 +00:00
parent c4ec64d76b
commit 2a3bf3e2ce
4 changed files with 24 additions and 15 deletions

View File

@ -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. */