* sigproc.cc (remove_proc): Don't do busy loop when exiting since it doesn't

matter.
This commit is contained in:
Christopher Faylor 2011-11-21 21:09:33 +00:00
parent 15660c23ab
commit cc07096c5c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2011-11-21 Christopher Faylor <me.cygwin2011@cgf.cx>
* sigproc.cc (remove_proc): Don't do busy loop when execing since * sigproc.cc (remove_proc): Don't do busy loop when execing since

View File

@ -1106,7 +1106,7 @@ remove_proc (int ci)
moving it or it may become confused. The chances are very high that 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 the proc_waiter thread has already done this by the time we
get here. */ get here. */
if (!have_execed) if (!have_execed && !exit_state)
while (!procs[nprocs].waiter_ready) while (!procs[nprocs].waiter_ready)
yield (); yield ();
procs[ci] = procs[nprocs]; procs[ci] = procs[nprocs];