From 11ba5ef4d16998de441aea84a9ea6644b8036703 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 5 May 2001 05:07:20 +0000 Subject: [PATCH] * exceptions.cc (handle_exceptions): Vastly increase test for exception loop guard variable. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f48f891c8..5920cef51 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Sat May 5 01:04:11 2001 Christopher Faylor + + * exceptions.cc (handle_exceptions): Vastly increase test for exception + loop guard variable. + Fri May 4 22:23:33 2001 Christopher Faylor * exceptions.cc (stack_info): Add some controls. diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index f7f425386..d9a812fcd 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. */