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
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/cygwin/sigproc.cc
parent6680cb64f130fbf027f35866cb78e24b99727a2a (diff)
* sigproc.cc (proc_terminate): Avoid releasing myself.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc3
1 files changed, 2 insertions, 1 deletions
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 ();