From 461b8de2bce8c05d7020a6ed0793bfa039365cb7 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Tue, 3 Apr 2001 00:36:09 +0000 Subject: [PATCH] Some shutdown work. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88669 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/mpm_winnt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 593826f70c..4fda4feec8 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -678,7 +678,7 @@ static void winnt_accept(void *listen_socket) nlsd = (SOCKET) listen_socket; - while (1) { + while (!shutdown_in_progress) { pCompContext = NULL; /* Grab a context off the queue */ apr_lock_acquire(qlock); @@ -758,7 +758,10 @@ static void winnt_accept(void *listen_socket) pCompContext->accept_socket = INVALID_SOCKET; ap_log_error(APLOG_MARK, APLOG_DEBUG, lasterror, server_conf, "winnt_accept: AcceptEx failed. Reallocate the accept socket and try again."); - goto again; + if (shutdown_in_progress) + break; + else + goto again; } else if (lasterror != APR_FROM_OS_ERROR(ERROR_IO_PENDING)) { ap_log_error(APLOG_MARK,APLOG_ERR, lasterror, server_conf, -- 2.50.1