* sigproc.cc (proc_terminate): Avoid releasing myself.

This commit is contained in:
Christopher Faylor 2012-03-28 17:28:27 +00:00
parent 6680cb64f1
commit cf22fb91a1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-03-28 Christopher Faylor <me.cygwin2012@cgf.cx>
* sigproc.cc (proc_terminate): Avoid releasing myself.
2012-03-28 Corinna Vinschen <corinna@vinschen.de>
* times.cc (clock_setres): Set minperiod to period.

View File

@ -448,7 +448,8 @@ proc_terminate ()
procs[i]->ppid = 1;
if (procs[i].wait_thread)
procs[i].wait_thread->terminate_thread ();
procs[i].release ();
if (procs[i] != myself)
procs[i].release ();
}
nprocs = 0;
sync_proc_subproc.release ();