mpm.h revision a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8
842ae4bd224140319ae7feec1872b93dfd491143fielding/* Licensed to the Apache Software Foundation (ASF) under one or more
842ae4bd224140319ae7feec1872b93dfd491143fielding * contributor license agreements. See the NOTICE file distributed with
842ae4bd224140319ae7feec1872b93dfd491143fielding * this work for additional information regarding copyright ownership.
842ae4bd224140319ae7feec1872b93dfd491143fielding * The ASF licenses this file to You under the Apache License, Version 2.0
842ae4bd224140319ae7feec1872b93dfd491143fielding * (the "License"); you may not use this file except in compliance with
842ae4bd224140319ae7feec1872b93dfd491143fielding * the License. You may obtain a copy of the License at
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes *
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * http://www.apache.org/licenses/LICENSE-2.0
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes *
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Unless required by applicable law or agreed to in writing, software
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * distributed under the License is distributed on an "AS IS" BASIS,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * See the License for the specific language governing permissions and
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * limitations under the License.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes/**
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * @file worker/mpm.h
e8f95a682820a599fe41b22977010636be5c2717jim * @brief Unix Worker MPM
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes *
e8f95a682820a599fe41b22977010636be5c2717jim * @defgroup APACHE_MPM_WORKER Unix Worker MPM
1747d30b98aa1bdbc43994c02cd46ab4cb9319e4fielding * @ingroup APACHE_OS_UNIX APACHE_MPM
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * @{
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#include "scoreboard.h"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#include "unixd.h"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#ifndef APACHE_MPM_WORKER_H
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define APACHE_MPM_WORKER_H
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define WORKER_MPM
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
5c0419d51818eb02045cf923a9fe456127a44c60wrowe#define MPM_NAME "Worker"
5c0419d51818eb02045cf923a9fe456127a44c60wrowe
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_WAIT_OR_TIMEOUT
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_PROCESS_CHILD_STATUS
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_SET_PIDFILE
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_SET_SCOREBOARD
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_SET_LOCKFILE
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton#define AP_MPM_WANT_SET_MAX_REQUESTS
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton#define AP_MPM_WANT_SET_COREDUMPDIR
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton#define AP_MPM_WANT_SIGNAL_SERVER
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_SET_MAX_MEM_FREE
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_SET_STACKSIZE
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_SET_GRACEFUL_SHUTDOWN
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_WANT_FATAL_SIGNAL_HANDLER
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#define MPM_ACCEPT_FUNC ap_unixd_accept
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawickextern int ap_threads_per_child;
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawickextern int ap_max_daemons_limit;
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesextern server_rec *ap_server_conf;
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesextern char ap_coredump_dir[MAX_STRING_LEN];
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
0568280364eb026393be492ebc732795c4934643jorton#endif /* APACHE_MPM_WORKER_H */
0568280364eb026393be492ebc732795c4934643jorton/** @} */
0568280364eb026393be492ebc732795c4934643jorton