]> granicus.if.org Git - apache/commitdiff
prefork: store pid in scoreboard for ONE_PROCESS mode
authorJeff Trawick <trawick@apache.org>
Wed, 2 Mar 2011 21:16:57 +0000 (21:16 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 2 Mar 2011 21:16:57 +0000 (21:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1076382 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 251b26782042ab9d6bdd7b927ee715f0f4984c87..252d6560931d4d3575dabea88c9ebea5336fe293 100644 (file)
@@ -708,6 +708,7 @@ static int make_child(server_rec *s, int slot)
         apr_signal(SIGQUIT, SIG_DFL);
 #endif
         apr_signal(SIGTERM, sig_term);
+        ap_scoreboard_image->parent[slot].pid = getpid();
         child_main(slot);
         return 0;
     }