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>2000-08-25 06:27:42 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-25 06:27:42 +0400
commit239b06b864b0231e9995e2279af850362910872f (patch)
tree54156b2a5e8e3bbbd5dd0117e607570edd1f4e1f /winsup/cygwin/external.cc
parent4bb85e7f6720e5cfa362b985527e922a6047a1e4 (diff)
* 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.cc5
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;
}