* 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

@@ -15,6 +15,7 @@ details. */
#include "sync.h"
#include "sigproc.h"
#include "pinfo.h"
#include <exceptions.h>
static external_pinfo *
fillout_pinfo (pid_t pid, int winpid)
@@ -154,6 +155,10 @@ cygwin_internal (cygwin_getinfo_types t, ...)
case CW_GETPINFO_FULL:
return (DWORD) fillout_pinfo (va_arg (arg, pid_t), 1);
case CW_INIT_EXCEPTIONS:
init_exceptions ((exception_list *) arg);
return 0;
default:
return (DWORD) -1;
}