2011-11-21 Christopher Faylor <me.cygwin2011@cgf.cx>
+ * sigproc.cc (remove_proc): Don't do busy loop when exiting since it
+ doesn't matter.
+
+2011-11-21 Christopher Faylor <me.cygwin2011@cgf.cx>
+
* sigproc.cc (remove_proc): Don't do busy loop when execing since
thread could have been terminated prior to setting flag.
moving it or it may become confused. The chances are very high that
the proc_waiter thread has already done this by the time we
get here. */
- if (!have_execed)
+ if (!have_execed && !exit_state)
while (!procs[nprocs].waiter_ready)
yield ();
procs[ci] = procs[nprocs];