aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-05 05:07:20 +0000
committerChristopher Faylor <me@cgf.cx>2001-05-05 05:07:20 +0000
commit11ba5ef4d16998de441aea84a9ea6644b8036703 (patch)
tree297c8b65713695d3c0b0da55c3df81d5d29fe3e1 /winsup/cygwin/exceptions.cc
parentdbc0c5fb59812ed9fc9de5e5882cb3f13fd54e3a (diff)
downloadnewlib-11ba5ef4d16998de441aea84a9ea6644b8036703.zip
newlib-11ba5ef4d16998de441aea84a9ea6644b8036703.tar.gz
newlib-11ba5ef4d16998de441aea84a9ea6644b8036703.tar.bz2
* exceptions.cc (handle_exceptions): Vastly increase test for exception loop
guard variable.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index f7f4253..d9a812f 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -406,8 +406,11 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *)
static int NO_COPY debugging = 0;
static int NO_COPY recursed = 0;
- if (debugging && ++debugging < 50)
- return 0;
+ if (debugging && ++debugging < 50000)
+ {
+ SetThreadPriority (hMainThread, THREAD_PRIORITY_NORMAL);
+ return 0;
+ }
/* If we've already exited, don't do anything here. Returning 1
tells Windows to keep looking for an exception handler. */