mod_perl logo
perl icon







previous page: Apache::PerlSections - Default Handler for Perl sectionspage up: mod_perl 2.0 APInext page: Apache::RequestIO - Perl API for Apache request record IO


Apache::Process - Perl API for Apache process record











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


Table of Contents

Synopsis

  use Apache::Process ();
  use Apache::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

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

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


TOP

API

Apache::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: Apache::PerlSections - Default Handler for Perl sectionspage up: mod_perl 2.0 APInext page: Apache::RequestIO - Perl API for Apache request record IO