docs::a...:Process(3)

πŸ“¦ version 2.0.13, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

okay so this is docs::a...:Process(3), coming at you from User Contributed Perl Documentation, and it's literally the page for Apache2::Process β€” the Perl API for Apache process record. no cap, that's the whole name vibe. πŸ’…


🌸 Synopsis 🌸

bestie, here's the exact little starter pack:

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;

πŸ’– Description πŸ’–

Apache2::Process gives you the API for the Apache process object, and you can retrieve that object with $s->process. iconic behavior, honestly:

use Apache2::ServerRec ();
$proc = $s->process;

🧚 API 🧚

Apache2::Process provides the following functions and/or methods β€” yes, all of them, we're not skipping a single one:

πŸŽ€ pconf πŸŽ€

Get configuration pool object. slay.

$p = $proc->pconf();
  • obj: $proc ( Apache2::Process object )
  • ret: $p ( APR::Pool object )
  • since: 2.0.00

This pool object gets cleared on server restart. so yeah, restart = bye-bye for that pool, bestie. πŸ’€

πŸ¦‹ 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. lowkey important: only on normal exit, okay? πŸ‘‘

🌈 short_name 🌈

The name of the program used to execute the program. main character name energy.

$short_name = $proc->short_name();
  • obj: $proc ( Apache2::Process object )
  • ret: $short_name (string) β€” e.g. "httpd"
  • since: 2.0.00

🌟 See Also 🌟

mod_perl 2.0 documentation. β€” your next stop, fr fr 🫢


mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. periodt. πŸ’œ


🫢 Authors 🫢

The mod_perl development team and numerous contributors. absolute icons. ✨


mwah πŸ’‹ this little manual moment came from perl v5.42.3, dated 2023-10-21, and it's the docs::a...:Process(3) page. periodt. πŸŽ€

πŸ“¦ where this page comes from