1docs::api::Apache2::ProUcseesrs(C3o)ntributed Perl Documdeonctsa:t:iaopni::Apache2::Process(3)
2
3
4

NAME

6       Apache2::Process - Perl API for Apache process record
7

Synopsis

9         use Apache2::Process ();
10         use Apache2::ServerRec ();
11         my $proc = $s->process;
12
13         # global pool cleared on exit
14         my $global_pool = $proc->pool;
15
16         # configuration pool cleared on restart
17         my $pconf = $proc->pconf;
18
19         # short program name (e.g. httpd)
20         my $proc_name = $proc->short_name;
21

Description

23       "Apache2::Process" provides the API for the Apache process object,
24       which you can retrieve with "$s->process":
25
26         use Apache2::ServerRec ();
27         $proc = $s->process;
28

API

30       "Apache2::Process" provides the following functions and/or methods:
31
32       "pconf"
33
34       Get configuration pool object.
35
36         $p = $proc->pconf();
37
38       obj: $proc ( "Apache2::Process object" )
39       ret: $p ( "APR::Pool object" )
40       since: 2.0.00
41
42       This pool object gets cleared on server restart.
43
44       "pool"
45
46       Get the global pool object.
47
48         $p = $proc->pool();
49
50       obj: $proc ( "Apache2::Process object" )
51       ret: $p ( "APR::Pool object" )
52       since: 2.0.00
53
54       This pool object gets cleared only on (normal) server exit
55
56       "short_name"
57
58       The name of the program used to execute the program
59
60         $short_name = $proc->short_name();
61
62       obj: $proc ( "Apache2::Process object" )
63       ret: $short_name (string)
64           e.g. "httpd"
65
66       since: 2.0.00
67

See Also

69       mod_perl 2.0 documentation.
70
72       mod_perl 2.0 and its core modules are copyrighted under The Apache
73       Software License, Version 2.0.
74

Authors

76       The mod_perl development team and numerous contributors.
77
78
79
80perl v5.8.8                       2006-11-19    docs::api::Apache2::Process(3)
Impressum