libapa...rocess(3pm)
β¨ NAME β¨
Apache2::Process β the Perl API for the Apache process record π (it lives in the libapa...rocess(3pm) manual, under User Contributed Perl Documentation, bestie, and she's a whole vibe)
πΈ Synopsis πΈ
okay so first things first, here's how you actually touch this thing:
use Apache2::Process ();
use Apache2::ServerRec ();
my $proc = $s->process;
# global pool cleared on exit
my $global_pool = $proc->pool;
# configuration pool cleared on restart
my $pconf = $proc->pconf;
# short program name (e.g. httpd)
my $proc_name = $proc->short_name;
look at that. iconic. no cap. π«Ά
π Description π
Apache2::Process hands you the API for the Apache process object, and the way you get your hands on it is through $s->process, like:
use Apache2::ServerRec ();
$proc = $s->process;
that's it, that's the entrance. main character energy only. β¨
π API π
Apache2::Process serves up the following functions and/or methods, and honestly? she ate. π
π pconf π
grab the configuration pool object, bestie:
$p = $proc->pconf();
- obj:
$proc( "Apache2::Process object" ) - ret:
$p( "APR::Pool object" ) - since:
2.0.00
and the tea: this pool object gets cleared on server restart. so like, restart happens, pool says bye βοΈ
π¦ pool π¦
get the global pool object:
$p = $proc->pool();
- obj:
$proc( "Apache2::Process object" ) - ret:
$p( "APR::Pool object" ) - since:
2.0.00
this pool object gets cleared only on (normal) server exit β so it's the ride-or-die one, it sticks around through literally everything else π
π short_name π
the name of the program used to execute the program:
$short_name = $proc->short_name();
- obj:
$proc( "Apache2::Process object" ) - ret:
$short_name(string)- e.g. "httpd"
- since:
2.0.00
it's giving nickname era, fr fr. π
π See Also π
- mod_perl 2.0 documentation β go read it, iykyk π
β Copyright β
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. legal girlies stay winning π
π Authors π
The mod_perl development team and numerous contributors. absolute legends, every single one of them π
okay and for the outro: this whole thing comes to you fromperl v5.42.3, dated2026-08-20, and it'slibapa...rocess(3pm). periodt. πβ¨π
π¦ where this page comes from
- ubuntu stonking: libapache2-mod-perl2 2.0.13-2build3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms