4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 12:05:47 +08:00

* exceptions.cc (handle_exceptions): Break out of "loop" if the debugger

doesn't seem to be attaching to our process.
This commit is contained in:
Christopher Faylor 2001-05-03 15:00:38 +00:00
parent a6a0193b2f
commit 70c7f359b1
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Thu May 3 10:44:16 2001 Christopher Faylor <cgf@cygnus.com>
* exceptions.cc (handle_exceptions): Break out of "loop" if the
debugger doesn't seem to be attaching to our process.
Wed May 2 20:18:00 2001 Corinna Vinschen <corinna@vinschen.de> Wed May 2 20:18:00 2001 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc: Use new definition of LoadDLLinitfunc throughout. * autoload.cc: Use new definition of LoadDLLinitfunc throughout.

View File

@ -397,7 +397,7 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *)
static int NO_COPY debugging = 0; static int NO_COPY debugging = 0;
static int NO_COPY recursed = 0; static int NO_COPY recursed = 0;
if (debugging) if (debugging && ++debugging < 50)
return 0; return 0;
/* If we've already exited, don't do anything here. Returning 1 /* If we've already exited, don't do anything here. Returning 1

View File

@ -1334,6 +1334,7 @@ socket_cleanup (select_record *, select_stuff *stuff)
/* Set LINGER with 0 timeout for hard close */ /* Set LINGER with 0 timeout for hard close */
struct linger tmp = {1, 0}; /* On, 0 delay */ struct linger tmp = {1, 0}; /* On, 0 delay */
(void) setsockopt (s, SOL_SOCKET, SO_LINGER, (char *)&tmp, sizeof(tmp)); (void) setsockopt (s, SOL_SOCKET, SO_LINGER, (char *)&tmp, sizeof(tmp));
(void) setsockopt (si->exitsock, SOL_SOCKET, SO_LINGER, (char *)&tmp, sizeof(tmp));
/* Connecting to si->exitsock will cause any executing select to wake /* Connecting to si->exitsock will cause any executing select to wake
up. When this happens then the exitsock condition will cause the up. When this happens then the exitsock condition will cause the

View File

@ -1144,7 +1144,7 @@ wait_sig (VOID *)
if (sig > 0 && sig != SIGKILL && sig != SIGSTOP && if (sig > 0 && sig != SIGKILL && sig != SIGSTOP &&
(sigismember (&myself->getsigmask (), sig) || (sigismember (&myself->getsigmask (), sig) ||
(sig != SIGCONT && ISSTATE (myself, PID_STOPPED)))) (sig != SIGCONT && ISSTATE (myself, PID_STOPPED))))
{ {
sigproc_printf ("signal %d blocked", sig); sigproc_printf ("signal %d blocked", sig);
break; break;
@ -1172,7 +1172,7 @@ wait_sig (VOID *)
/* Need to decrement again to offset increment below since /* Need to decrement again to offset increment below since
we really do want to decrement in this case. */ we really do want to decrement in this case. */
InterlockedDecrement (myself->getsigtodo (sig)); InterlockedDecrement (myself->getsigtodo (sig));
goto nextsig; goto nextsig; /* FIXME: shouldn't this allow the loop to continue? */
} }
} }