]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Implement new ScoreBoardFile directive logic. This affects how we
authorAaron Bannert <aaron@apache.org>
Fri, 15 Feb 2002 20:48:19 +0000 (20:48 +0000)
committerAaron Bannert <aaron@apache.org>
Fri, 15 Feb 2002 20:48:19 +0000 (20:48 +0000)
commit356184055f4a12ef82280ba481830f3b9574adfb
treeef9a7959f8c57e5eff4f670779bfb7a79f50c8da
parentc4c902263bd0da1806cabc775f6bf3a4b70809fa
Implement new ScoreBoardFile directive logic. This affects how we
create the scoreboard's shared memory segment. We now have the best of
both worlds:

if config specifies ScoreBoardFile
  create name-based shared memory, errors are fatal
else /* we get to choose */
  create anonymous shared memory
  if ENOTIMPL
    create name-based shared memory from DEFAULT_SCOREBOARD
  else
    errors are fatal

This gives us the flexibility to have anonymous shared memory (on platforms
that support it) as well as name-based shared memory when third-party
programs want access to our scoreboard.

The ap_scoreboard_fname static variable is now owned by the scoreboard.c
file, and no longer by the MPMs. The MPMs MUST NOT set ap_scoreboard_fname
to a default, since that will override the default creation logic and
only allow name-based segments.

Submitted by: Aaron Bannert
Reviewed by: Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93434 13f79535-47bb-0310-9956-ffa450edef68
14 files changed:
include/scoreboard.h
server/mpm/beos/beos.c
server/mpm/beos/mpm_default.h
server/mpm/experimental/perchild/mpm_default.h
server/mpm/experimental/perchild/perchild.c
server/mpm/netware/mpm_default.h
server/mpm/netware/mpm_netware.c
server/mpm/perchild/mpm_default.h
server/mpm/perchild/perchild.c
server/mpm/prefork/mpm_default.h
server/mpm/prefork/prefork.c
server/mpm/worker/mpm_default.h
server/mpm/worker/worker.c
server/scoreboard.c