]> granicus.if.org Git - apache/commitdiff
Release the accept mutex after receiving the shutdown signal
authorJeff Trawick <trawick@apache.org>
Wed, 7 Jan 2009 18:37:18 +0000 (18:37 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 7 Jan 2009 18:37:18 +0000 (18:37 +0000)
in single-process mode.  (That isn't a critical step, but
neatness counts.)

Submitted by: rpleum

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@732421 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 320e1030770b1c70c2d3b15c82f03e3171f336bb..7fb366a7faa3f67b16191843b6707546115ade9e 100644 (file)
@@ -549,6 +549,7 @@ static void child_main(int child_num_arg)
                 if (status != APR_SUCCESS) {
                     if (APR_STATUS_IS_EINTR(status)) {
                         if (one_process && shutdown_pending) {
+                            SAFE_ACCEPT(accept_mutex_off());
                             return;
                         }
                         else if (die_now) {