* external.cc (cygwin_internal): Add CW_INIT_EXCEPTIONS to allow cygwin

exception handling on threads not created by cygwin.
* sigproc.cc (proc_terminate): Don't release pinfo structs since we are
exiting.
* include/sys/cygwin.h: Add CW_INIT_EXCEPTIONS.
This commit is contained in:
Christopher Faylor
2000-08-25 02:27:42 +00:00
parent 4bb85e7f67
commit 239b06b864
5 changed files with 23 additions and 7 deletions

View File

@ -499,7 +499,7 @@ proc_terminate (void)
zombies[i]->hProcess = NULL;
}
zombies[i]->process_state = PID_NOT_IN_USE; /* CGF FIXME - still needed? */
zombies[i].release();
// zombies[i].release(); // FIXME: this breaks older gccs for some reason
}
/* Disassociate my subprocesses */
@ -530,10 +530,15 @@ proc_terminate (void)
pchildren[i]->process_state |= PID_ORPHANED;
}
}
pchildren[i].release ();
// pchildren[i].release (); // FIXME: this breaks older gccs for some reason
}
nchildren = nzombies = 0;
/* Just zero sync_proc_subproc as the delete below seems to cause
problems for older gccs. */
#if 1
sync_proc_subproc = NULL;
#else
/* Attempt to close and release sync_proc_subproc in a
* non-raceable manner.
*/
@ -541,8 +546,9 @@ proc_terminate (void)
if (m)
{
sync_proc_subproc = NULL;
delete m;
// delete m;
}
#endif
}
sigproc_printf ("leaving");
}