diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-25 02:27:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-25 02:27:42 +0000 |
commit | 239b06b864b0231e9995e2279af850362910872f (patch) | |
tree | 54156b2a5e8e3bbbd5dd0117e607570edd1f4e1f /winsup/cygwin/external.cc | |
parent | 4bb85e7f6720e5cfa362b985527e922a6047a1e4 (diff) | |
download | cygnal-239b06b864b0231e9995e2279af850362910872f.tar.gz cygnal-239b06b864b0231e9995e2279af850362910872f.tar.bz2 cygnal-239b06b864b0231e9995e2279af850362910872f.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 1ecbf14cf..566293b63 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -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; } |