mod_perl logo perl icon
previous page: Apache2::PerlSections - write Apache configuration files in Perlpage up: mod_perl 2.0 APInext page: Apache2::RequestIO - Perl API for Apache request record IO

Apache2::Process - Perl API for Apache process record






Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt


Table of Contents

Synopsis

  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;


TOP

Description

Apache2::Process provides the API for the Apache process object, which you can retrieve with $s->process:

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


TOP

API

Apache2::Process provides the following functions and/or methods:



TOP

pconf

Get configuration pool object.

  $p = $proc->pconf();

This pool object gets cleared on server restart.



TOP

pool

Get the global pool object.

  $p = $proc->pool();

This pool object gets cleared only on (normal) server exit



TOP

short_name

The name of the program used to execute the program

  $short_name = $proc->short_name();


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.



TOP

Authors

The mod_perl development team and numerous contributors.






TOP
previous page: Apache2::PerlSections - write Apache configuration files in Perlpage up: mod_perl 2.0 APInext page: Apache2::RequestIO - Perl API for Apache request record IO