NAME

FCGI::ProcManager - functions for managing FastCGI applications.

SYNOPSIS

# In its simplest form.
use CGI::Fast;
use FCGI::ProcManager;
my $proc_manager = FCGI::ProcManager->new({n_processes=>10});
$proc_manager->manage();
while (my $cgi = CGI::Fast->new()) {
  #...

DESCRIPTION

FCGI::ProcManager is used to serve as a FastCGI process manager. The parent uses fork(2) and wait(2) to manage a set of FastCGI application servers. more later.

METHODS

new

self_or_default

private global
(ProcManager, @args) self_or_default([ ProcManager, ] @args);

DESCRIPTION:

This is a helper subroutine to acquire or otherwise create a singleton default object if one is not passed in, e.g., a method call.

pm_manage

global
() pm_manage(int processes_to_spawn)

DESCRIPTION:

When this is called by a FastCGI script to manage application servers.

managing_init

handling_init

pm_pre_dispatch

pm_post_dispatch

pm_write_pid_file

pm_remove_pid_file

pm_parameter

n_processes

no_signals

pid_fname

pm_state

pm_register_sig_handler

pm_unregister_sig_handler

sig_method

pm_warn

exit

pm_abort

BUGS

No known bugs, but this does not mean no bugs exist.

SEE ALSO

FCGI.

COPYRIGHT

FCGI-ProcManager - A Perl FCGI Process Manager
Copyright (c) 2000, FundsXpress Financial Network, Inc.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

BECAUSE THIS LIBRARY IS LICENSED FREE OF CHARGE, THIS LIBRARY IS
BEING PROVIDED "AS IS WITH ALL FAULTS," WITHOUT ANY WARRANTIES
OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT
LIMITATION, ANY IMPLIED WARRANTIES OF TITLE, NONINFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND THE
ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY,
AND EFFORT IS WITH THE YOU.  See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA