Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-03-28 21:28:27 +0400
committerChristopher Faylor <me@cgf.cx>2012-03-28 21:28:27 +0400
commitcf22fb91a1cf7232857833ff39538823fafca3d7 (patch)
tree38afe72b7adef5ef10caa7bc150414813d735129 /winsup
parent6680cb64f130fbf027f35866cb78e24b99727a2a (diff)
* sigproc.cc (proc_terminate): Avoid releasing myself.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/sigproc.cc3
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e9a13f3d7..5c02e0c15 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index dc73765be..a8a85ebb6 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -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 ();