diff options
author | Christopher Faylor <me@cgf.cx> | 2012-03-28 21:28:27 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-03-28 21:28:27 +0400 |
commit | cf22fb91a1cf7232857833ff39538823fafca3d7 (patch) | |
tree | 38afe72b7adef5ef10caa7bc150414813d735129 /winsup/cygwin/sigproc.cc | |
parent | 6680cb64f130fbf027f35866cb78e24b99727a2a (diff) |
* sigproc.cc (proc_terminate): Avoid releasing myself.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 3 |
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 (); |