mpm.h revision 14763a0db22322626dd8cd59dfbc3a4fcc655d99
1766N/A/* Copyright 2000-2004 The Apache Software Foundation
1766N/A *
1766N/A * Licensed under the Apache License, Version 2.0 (the "License");
1766N/A * you may not use this file except in compliance with the License.
1766N/A * You may obtain a copy of the License at
1766N/A *
1766N/A * http://www.apache.org/licenses/LICENSE-2.0
1766N/A *
1766N/A * Unless required by applicable law or agreed to in writing, software
1766N/A * distributed under the License is distributed on an "AS IS" BASIS,
1766N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1766N/A * See the License for the specific language governing permissions and
1766N/A * limitations under the License.
1766N/A */
1766N/A
1766N/A#include "httpd.h"
1766N/A#include "mpm_default.h"
1766N/A#include "unixd.h"
1766N/A
1766N/A#ifndef APACHE_MPM_PERCHILD_H
1766N/A#define APACHE_MPM_PERCHILD_H
1766N/A
5680N/A#define PERCHILD_MPM
1766N/A
5680N/A#define MPM_NAME "Perchild"
1766N/A
1766N/A#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
1766N/A#define AP_MPM_WANT_WAIT_OR_TIMEOUT
1766N/A#define AP_MPM_WANT_PROCESS_CHILD_STATUS
1766N/A#define AP_MPM_WANT_SET_PIDFILE
1766N/A#define AP_MPM_WANT_SET_SCOREBOARD
1766N/A#define AP_MPM_WANT_SET_LOCKFILE
1766N/A#define AP_MPM_WANT_SET_MAX_REQUESTS
1766N/A#define AP_MPM_WANT_SET_COREDUMPDIR
2899N/A#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
2899N/A#define AP_MPM_WANT_SIGNAL_SERVER
2899N/A#define AP_MPM_WANT_SET_STACKSIZE
1766N/A#define AP_MPM_WANT_FATAL_SIGNAL_HANDLER
4968N/A#define AP_MPM_USES_POD
4968N/A
4968N/A#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
4968N/A#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
4968N/A#define MPM_ACCEPT_FUNC unixd_accept
4968N/A
4968N/A/* Table of child status */
5680N/A#define SERVER_DEAD 0
1766N/A#define SERVER_DYING 1
1766N/A#define SERVER_ALIVE 2
1766N/A
1766N/Atypedef struct ap_ctable{
1766N/A pid_t pid;
1766N/A unsigned char status;
1766N/A} ap_ctable;
1766N/A
1766N/Aextern int ap_threads_per_child;
1766N/Aextern int ap_max_daemons_limit;
1766N/Aextern server_rec *ap_server_conf;
1766N/A
1766N/A#endif /* APACHE_MPM_PERCHILD_H */
5680N/A