mpm.h revision 14763a0db22322626dd8cd59dfbc3a4fcc655d99
3802a3d3d7af51ddff31943d5514382f01265770Lennart Poettering/* Copyright 2001-2004 The Apache Software Foundation
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek *
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * Licensed under the Apache License, Version 2.0 (the "License");
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * you may not use this file except in compliance with the License.
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * You may obtain a copy of the License at
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek *
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * http://www.apache.org/licenses/LICENSE-2.0
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek *
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * Unless required by applicable law or agreed to in writing, software
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * distributed under the License is distributed on an "AS IS" BASIS,
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * See the License for the specific language governing permissions and
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek * limitations under the License.
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek */
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#include "scoreboard.h"
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#include "unixd.h"
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#ifndef APACHE_MPM_WORKER_H
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define APACHE_MPM_WORKER_H
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define WORKER_MPM
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
301af7e4853ad0281402f8d86f5a77c6cb7ce9f4Josh Triplett#define MPM_NAME "Worker"
301af7e4853ad0281402f8d86f5a77c6cb7ce9f4Josh Triplett
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_WAIT_OR_TIMEOUT
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_PROCESS_CHILD_STATUS
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_PIDFILE
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_SCOREBOARD
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_LOCKFILE
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_MAX_REQUESTS
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_COREDUMPDIR
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SIGNAL_SERVER
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_MAX_MEM_FREE
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_SET_STACKSIZE
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_WANT_FATAL_SIGNAL_HANDLER
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#define MPM_ACCEPT_FUNC unixd_accept
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmekextern int ap_threads_per_child;
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmekextern int ap_max_daemons_limit;
301af7e4853ad0281402f8d86f5a77c6cb7ce9f4Josh Triplettextern server_rec *ap_server_conf;
301af7e4853ad0281402f8d86f5a77c6cb7ce9f4Josh Triplettextern char ap_coredump_dir[MAX_STRING_LEN];
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek#endif /* APACHE_MPM_WORKER_H */
3cc765d2718ac9b4ff978044ceabf5ad59d73edfZbigniew Jędrzejewski-Szmek