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       Get configuration pool object.
34
35         $p = $proc->pconf();
36
37       obj: $proc ( "Apache2::Process object" )
38       ret: $p ( "APR::Pool object" )
39       since: 2.0.00
40
41       This pool object gets cleared on server restart.
42
43   "pool"
44       Get the global pool object.
45
46         $p = $proc->pool();
47
48       obj: $proc ( "Apache2::Process object" )
49       ret: $p ( "APR::Pool object" )
50       since: 2.0.00
51
52       This pool object gets cleared only on (normal) server exit
53
54   "short_name"
55       The name of the program used to execute the program
56
57         $short_name = $proc->short_name();
58
59       obj: $proc ( "Apache2::Process object" )
60       ret: $short_name (string)
61           e.g. "httpd"
62
63       since: 2.0.00
64

See Also

66       mod_perl 2.0 documentation.
67
69       mod_perl 2.0 and its core modules are copyrighted under The Apache
70       Software License, Version 2.0.
71

Authors

73       The mod_perl development team and numerous contributors.
74
75
76
77perl v5.12.0                      2007-11-12    docs::api::Apache2::Process(3)
Impressum