Google
 

Multi-Processing Module library
[Apache Core]


Defines

#define AP_MPMQ_NOT_SUPPORTED   0
#define AP_MPMQ_STATIC   1
#define AP_MPMQ_DYNAMIC   2
#define AP_MPMQ_STARTING   0
#define AP_MPMQ_RUNNING   1
#define AP_MPMQ_STOPPING   2
#define AP_MPMQ_MAX_DAEMON_USED   1
#define AP_MPMQ_IS_THREADED   2
#define AP_MPMQ_IS_FORKED   3
#define AP_MPMQ_HARD_LIMIT_DAEMONS   4
#define AP_MPMQ_HARD_LIMIT_THREADS   5
#define AP_MPMQ_MAX_THREADS   6
#define AP_MPMQ_MIN_SPARE_DAEMONS   7
#define AP_MPMQ_MIN_SPARE_THREADS   8
#define AP_MPMQ_MAX_SPARE_DAEMONS   9
#define AP_MPMQ_MAX_SPARE_THREADS   10
#define AP_MPMQ_MAX_REQUESTS_DAEMON   11
#define AP_MPMQ_MAX_DAEMONS   12
#define AP_MPMQ_MPM_STATE   13
#define AP_MPMQ_IS_ASYNC   14
#define AP_MONCONTROL(x)

Functions

int ap_mpm_run (apr_pool_t *pconf, apr_pool_t *plog, server_rec *server_conf)
int ap_graceful_stop_signalled (void)
apr_status_t ap_os_create_privileged_process (const request_rec *r, apr_proc_t *newproc, const char *progname, const char *const *args, const char *const *env, apr_procattr_t *attr, apr_pool_t *p)
apr_status_t ap_mpm_query (int query_code, int *result)

Define Documentation

#define AP_MONCONTROL (  ) 

#define AP_MPMQ_DYNAMIC   2

#define AP_MPMQ_HARD_LIMIT_DAEMONS   4

#define AP_MPMQ_HARD_LIMIT_THREADS   5

#define AP_MPMQ_IS_ASYNC   14

#define AP_MPMQ_IS_FORKED   3

#define AP_MPMQ_IS_THREADED   2

#define AP_MPMQ_MAX_DAEMON_USED   1

#define AP_MPMQ_MAX_DAEMONS   12

#define AP_MPMQ_MAX_REQUESTS_DAEMON   11

#define AP_MPMQ_MAX_SPARE_DAEMONS   9

#define AP_MPMQ_MAX_SPARE_THREADS   10

#define AP_MPMQ_MAX_THREADS   6

#define AP_MPMQ_MIN_SPARE_DAEMONS   7

#define AP_MPMQ_MIN_SPARE_THREADS   8

#define AP_MPMQ_MPM_STATE   13

#define AP_MPMQ_NOT_SUPPORTED   0

#define AP_MPMQ_RUNNING   1

#define AP_MPMQ_STARTING   0

#define AP_MPMQ_STATIC   1

#define AP_MPMQ_STOPPING   2


Function Documentation

int ap_graceful_stop_signalled ( void   ) 

int ap_mpm_query ( int  query_code,
int *  result 
)

Query a property of the current MPM.

Parameters:
query_code One of APM_MPMQ_*
result A location to place the result of the query
Returns:
APR_SUCCESS or APR_ENOTIMPL

int ap_mpm_run ( apr_pool_t *  pconf,
apr_pool_t *  plog,
server_rec server_conf 
)

This is the function that MPMs must create. This function is responsible for controlling the parent and child processes. It will run until a restart/shutdown is indicated.

Parameters:
pconf the configuration pool, reset before the config file is read
plog the log pool, reset after the config file is read
server_conf the global server config.
Returns:
1 for shutdown 0 otherwise.

apr_status_t ap_os_create_privileged_process ( const request_rec r,
apr_proc_t *  newproc,
const char *  progname,
const char *const *  args,
const char *const *  env,
apr_procattr_t *  attr,
apr_pool_t *  p 
)

Spawn a process with privileges that another module has requested

Parameters:
r The request_rec of the current request
newproc The resulting process handle.
progname The program to run
const_args the arguments to pass to the new program. The first one should be the program name.
env The new environment apr_table_t for the new process. This should be a list of NULL-terminated strings.
attr the procattr we should use to determine how to create the new process
p The pool to use.


Generated on Sun Jul 1 10:07:07 2007 by Doxygen 1.5.2. This rendition of the open source Apache HTTP Server header documentation is not endorsed by or affiliated with the Apache Software Foundation.