* 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

@@ -1334,6 +1334,7 @@ socket_cleanup (select_record *, select_stuff *stuff)
/* Set LINGER with 0 timeout for hard close */
struct linger tmp = {1, 0}; /* On, 0 delay */
(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
up. When this happens then the exitsock condition will cause the