Have child processes srand on startup.
[catagits/FCGI-ProcManager.git] / lib / FCGI / ProcManager.pm
CommitLineData
0baf5fac 1package FCGI::ProcManager;
2
3# Copyright (c) 2000, FundsXpress Financial Network, Inc.
4# This library is free software released under the GNU Lesser General
5# Public License, Version 2.1. Please read the important licensing and
6# disclaimer information included below.
7
50f238cd 8# $Id: ProcManager.pm,v 1.23 2001/04/23 16:10:11 muaddie Exp $
0baf5fac 9
10use strict;
4ceac1a1 11use Exporter;
50f238cd 12use POSIX qw(:signal_h);
4ceac1a1 13
50f238cd 14use vars qw($VERSION @ISA @EXPORT_OK %EXPORT_TAGS $Q $SIG_CODEREF);
0baf5fac 15BEGIN {
3561484c 16 $VERSION = '0.24';
4ceac1a1 17 @ISA = qw(Exporter);
c2bbadb3 18 @EXPORT_OK = qw(pm_manage pm_die pm_wait
4b99386a 19 pm_write_pid_file pm_remove_pid_file
20 pm_pre_dispatch pm_post_dispatch
21 pm_change_process_name pm_received_signal pm_parameter
22 pm_warn pm_notify pm_abort pm_exit
23 $SIG_CODEREF);
4ceac1a1 24 $EXPORT_TAGS{all} = \@EXPORT_OK;
25 $FCGI::ProcManager::Default = 'FCGI::ProcManager';
0baf5fac 26}
27
28=head1 NAME
29
30 FCGI::ProcManager - functions for managing FastCGI applications.
31
32=head1 SYNOPSIS
33
518709ed 34 # In Object-oriented style.
0baf5fac 35 use CGI::Fast;
36 use FCGI::ProcManager;
c2bbadb3 37 my $proc_manager = FCGI::ProcManager->new({
4b99386a 38 n_processes => 10
c2bbadb3 39 });
518709ed 40 $proc_manager->pm_manage();
0baf5fac 41 while (my $cgi = CGI::Fast->new()) {
518709ed 42 $proc_manager->pm_pre_dispatch();
43 # ... handle the request here ...
44 $proc_manager->pm_post_dispatch();
45 }
46
47 # This style is also supported:
48 use CGI::Fast;
6e8b04f7 49 use FCGI::ProcManager qw(pm_manage pm_pre_dispatch
4b99386a 50 pm_post_dispatch);
518709ed 51 pm_manage( n_processes => 10 );
52 while (my $cgi = CGI::Fast->new()) {
53 pm_pre_dispatch();
0baf5fac 54 #...
518709ed 55 pm_post_dispatch();
56 }
0baf5fac 57
58=head1 DESCRIPTION
59
518709ed 60FCGI::ProcManager is used to serve as a FastCGI process manager. By
61re-implementing it in perl, developers can more finely tune performance in
62their web applications, and can take advantage of copy-on-write semantics
63prevalent in UNIX kernel process management. The process manager should
64be invoked before the caller''s request loop
65
66The primary routine, C<pm_manage>, enters a loop in which it maintains a
67number of FastCGI servers (via fork(2)), and which reaps those servers
68when they die (via wait(2)).
69
70C<pm_manage> provides too hooks:
71
72 C<managing_init> - called just before the manager enters the manager loop.
73 C<handling_init> - called just before a server is returns from C<pm_manage>
74
75It is necessary for the caller, when implementing its request loop, to
76insert a call to C<pm_pre_dispatch> at the top of the loop, and then
777C<pm_post_dispatch> at the end of the loop.
78
50f238cd 79=head2 Signal Handling
80
81FCGI::ProcManager attempts to do the right thing for proper shutdowns now.
82
83When it receives a SIGHUP, it sends a SIGTERM to each of its children, and
b48455f1 84then resumes its normal operations.
50f238cd 85
86When it receives a SIGTERM, it sends a SIGTERM to each of its children, sets
87an alarm(3) "die timeout" handler, and waits for each of its children to
88die. If all children die before this timeout, process manager exits with
89return status 0. If all children do not die by the time the "die timeout"
90occurs, the process manager sends a SIGKILL to each of the remaining
91children, and exists with return status 1.
92
93In order to get FastCGI servers to exit upon receiving a signal, it is
b48455f1 94necessary to use its FAIL_ACCEPT_ON_INTR. See L<FCGI>'s description of
95FAIL_ACCEPT_ON_INTR. Unfortunately, if you want/need to use L<CGI::Fast>, it
96is currently necessary to run the latest (at the time of writing) development
97version of FCGI.pm. (>= 0.71_02)
50f238cd 98
99Otherwise, if you don't, there is a loop around accept(2) which prevents
100os_unix.c OS_Accept() from returning the necessary error when FastCGI
101servers blocking on accept(2) receive the SIGTERM or SIGHUP.
102
103FCGI::ProcManager uses POSIX::sigaction() to override the default SA_RESTART
104policy used for perl's %SIG behavior. Specifically, the process manager
105never uses SA_RESTART, while the child FastCGI servers turn off SA_RESTART
85f39372 106around the accept(2) loop, but reinstate it otherwise.
50f238cd 107
108The desired (and implemented) effect is to give a request as big a chance as
109possible to succeed and to delay their exits until after their request,
110while allowing the FastCGI servers waiting for new requests to die right
b48455f1 111away.
0baf5fac 112
113=head1 METHODS
114
115=head2 new
116
c2bbadb3 117 class or instance
118 (ProcManager) new([hash parameters])
119
120Constructs a new process manager. Takes an option has of initial parameter
121values, and assigns these to the constructed object HASH, overriding any
122default values. The default parameter values currently are:
123
124 role => manager
125 start_delay => 0
126 die_timeout => 60
2ae890a5 127 pm_title => 'perl-fcgi-pm'
c2bbadb3 128
0baf5fac 129=cut
130
131sub new {
132 my ($proto,$init) = @_;
50f238cd 133 $init ||= {};
0baf5fac 134
518709ed 135 my $this = {
4b99386a 136 role => "manager",
137 start_delay => 0,
138 die_timeout => 60,
2ae890a5 139 pm_title => 'perl-fcgi-pm',
4b99386a 140 %$init
141 };
4ceac1a1 142 bless $this, ref($proto)||$proto;
0baf5fac 143
144 $this->{PIDS} = {};
145
50f238cd 146 # initialize signal constructions.
147 unless ($this->no_signals()) {
148 $this->{sigaction_no_sa_restart} =
4b99386a 149 POSIX::SigAction->new('FCGI::ProcManager::sig_sub');
50f238cd 150 $this->{sigaction_sa_restart} =
4b99386a 151 POSIX::SigAction->new('FCGI::ProcManager::sig_sub',undef,POSIX::SA_RESTART);
50f238cd 152 }
153
0baf5fac 154 return $this;
155}
156
518709ed 157=head1 Manager methods
4ceac1a1 158
159=head2 pm_manage
0baf5fac 160
c2bbadb3 161 instance or export
162 (int) pm_manage([hash parameters])
0baf5fac 163
164DESCRIPTION:
165
c2bbadb3 166When this is called by a FastCGI script to manage application servers. It
167defines a sequence of instructions for a process to enter this method and
168begin forking off and managing those handlers, and it defines a sequence of
169instructions to intialize those handlers.
170
171If n_processes < 1, the managing section is subverted, and only the
172handling sequence is executed.
173
174Either returns the return value of pm_die() and/or pm_abort() (which will
175not ever return in general), or returns 1 to the calling script to begin
176handling requests.
0baf5fac 177
178=cut
179
4ceac1a1 180sub pm_manage {
518709ed 181 my ($this,%values) = self_or_default(@_);
182 map { $this->pm_parameter($_,$values{$_}) } keys %values;
0baf5fac 183
f969c066 184 local $SIG{CHLD}; # Replace the SIGCHLD default handler in case
185 # somebody shit on it whilst loading code.
186
518709ed 187 # skip to handling now if we won't be managing any processes.
50f238cd 188 $this->n_processes() or return;
0baf5fac 189
518709ed 190 # call the (possibly overloaded) management initialization hook.
191 $this->role("manager");
c146b63d 192 $this->managing_init();
518709ed 193 $this->pm_notify("initialized");
0baf5fac 194
518709ed 195 my $manager_pid = $$;
0baf5fac 196
518709ed 197 MANAGING_LOOP: while (1) {
198
518709ed 199 $this->n_processes() > 0 or
200 return $this->pm_die();
0baf5fac 201
518709ed 202 # while we have fewer servers than we want.
203 PIDS: while (keys(%{$this->{PIDS}}) < $this->n_processes()) {
204
205 if (my $pid = fork()) {
4b99386a 206 # the manager remembers the server.
207 $this->{PIDS}->{$pid} = { pid=>$pid };
518709ed 208 $this->pm_notify("server (pid $pid) started");
0baf5fac 209
210 } elsif (! defined $pid) {
4b99386a 211 return $this->pm_abort("fork: $!");
0baf5fac 212
213 } else {
4b99386a 214 $this->{MANAGER_PID} = $manager_pid;
215 # the server exits the managing loop.
216 last MANAGING_LOOP;
0baf5fac 217 }
0baf5fac 218
69817330 219 for (my $s = $this->start_delay(); $s > 0; $s -= sleep $s) {};
518709ed 220 }
c146b63d 221
518709ed 222 # this should block until the next server dies.
c2bbadb3 223 $this->pm_wait();
0baf5fac 224
225 }# while 1
226
518709ed 227HANDLING:
0baf5fac 228
c2bbadb3 229 # forget any children we had been collecting.
230 delete $this->{PIDS};
231
518709ed 232 # call the (possibly overloaded) handling init hook
233 $this->role("server");
c146b63d 234 $this->handling_init();
518709ed 235 $this->pm_notify("initialized");
0baf5fac 236
518709ed 237 # server returns
0baf5fac 238 return 1;
239}
240
c146b63d 241=head2 managing_init
0baf5fac 242
c2bbadb3 243 instance
244 () managing_init()
245
246DESCRIPTION:
247
248Overrideable method which initializes a process manager. In order to
249handle signals, manage the PID file, and change the process name properly,
250any method which overrides this should call SUPER::managing_init().
251
0baf5fac 252=cut
253
c146b63d 254sub managing_init {
c2bbadb3 255 my ($this) = @_;
0baf5fac 256
518709ed 257 # begin to handle signals.
50f238cd 258 # We do NOT want SA_RESTART in the process manager.
259 # -- we want start the shutdown sequence immediately upon SIGTERM.
260 unless ($this->no_signals()) {
261 sigaction(SIGTERM, $this->{sigaction_no_sa_restart}) or
4b99386a 262 $this->pm_warn("sigaction: SIGTERM: $!");
50f238cd 263 sigaction(SIGHUP, $this->{sigaction_no_sa_restart}) or
4b99386a 264 $this->pm_warn("sigaction: SIGHUP: $!");
50f238cd 265 $SIG_CODEREF = sub { $this->sig_manager(@_) };
266 }
0baf5fac 267
518709ed 268 # change the name of this process as it appears in ps(1) output.
2ae890a5 269 $this->pm_change_process_name($this->pm_parameter('pm_title'));
0baf5fac 270
518709ed 271 $this->pm_write_pid_file();
0baf5fac 272}
273
518709ed 274=head2 pm_die
0baf5fac 275
c2bbadb3 276 instance or export
277 () pm_die(string msg[, int exit_status])
278
279DESCRIPTION:
280
281This method is called when a process manager receives a notification to
282shut itself down. pm_die() attempts to shutdown the process manager
283gently, sending a SIGTERM to each managed process, waiting die_timeout()
284seconds to reap each process, and then exit gracefully once all children
285are reaped, or to abort if all children are not reaped.
286
0baf5fac 287=cut
288
518709ed 289sub pm_die {
290 my ($this,$msg,$n) = self_or_default(@_);
291
292 # stop handling signals.
50f238cd 293 undef $SIG_CODEREF;
518709ed 294 $SIG{HUP} = 'DEFAULT';
295 $SIG{TERM} = 'DEFAULT';
296
297 $this->pm_remove_pid_file();
298
299 # prepare to die no matter what.
300 if (defined $this->die_timeout()) {
50f238cd 301 $SIG{ALRM} = sub { $this->pm_abort("wait timeout") };
518709ed 302 alarm $this->die_timeout();
303 }
304
305 # send a TERM to each of the servers.
50f238cd 306 if (my @pids = keys %{$this->{PIDS}}) {
307 $this->pm_notify("sending TERM to PIDs, @pids");
308 kill "TERM", @pids;
309 }
518709ed 310
311 # wait for the servers to die.
312 while (%{$this->{PIDS}}) {
c2bbadb3 313 $this->pm_wait();
518709ed 314 }
315
316 # die already.
317 $this->pm_exit("dying: ".$msg,$n);
0baf5fac 318}
319
c2bbadb3 320=head2 pm_wait
321
322 instance or export
323 (int pid) pm_wait()
324
325DESCRIPTION:
326
327This calls wait() which suspends execution until a child has exited.
328If the process ID returned by wait corresponds to a managed process,
329pm_notify() is called with the exit status of that process.
330pm_wait() returns with the return value of wait().
0baf5fac 331
332=cut
333
c2bbadb3 334sub pm_wait {
4ceac1a1 335 my ($this) = self_or_default(@_);
518709ed 336
337 # wait for the next server to die.
5ef2d8bb 338 return if ((my $pid = wait()) < 0);
518709ed 339
340 # notify when one of our servers have died.
341 delete $this->{PIDS}->{$pid} and
342 $this->pm_notify("server (pid $pid) exited with status $?");
c2bbadb3 343
344 return $pid;
0baf5fac 345}
346
c146b63d 347=head2 pm_write_pid_file
0baf5fac 348
c2bbadb3 349 instance or export
350 () pm_write_pid_file([string filename])
351
352DESCRIPTION:
353
354Writes current process ID to optionally specified file. If no filename is
355specified, it uses the value of the C<pid_fname> parameter.
356
0baf5fac 357=cut
358
4ceac1a1 359sub pm_write_pid_file {
360 my ($this,$fname) = self_or_default(@_);
0baf5fac 361 $fname ||= $this->pid_fname() or return;
63976743 362 my $PIDFILE
363 if (!open $PIDFILE, ">$fname") {
518709ed 364 $this->pm_warn("open: $fname: $!");
0baf5fac 365 return;
366 }
63976743 367 print $PIDFILE "$$\n" or die "Could not print PID: $!";
8fc1fb48 368 close $PIDFILE or die "Could not close PID file: $!";
0baf5fac 369}
370
c146b63d 371=head2 pm_remove_pid_file
0baf5fac 372
c2bbadb3 373 instance or export
374 () pm_remove_pid_file()
375
376DESCRIPTION:
377
378Removes optionally specified file. If no filename is specified, it uses
379the value of the C<pid_fname> parameter.
380
0baf5fac 381=cut
382
4ceac1a1 383sub pm_remove_pid_file {
384 my ($this,$fname) = self_or_default(@_);
0baf5fac 385 $fname ||= $this->pid_fname() or return;
518709ed 386 my $ret = unlink($fname) or $this->pm_warn("unlink: $fname: $!");
0baf5fac 387 return $ret;
388}
389
50f238cd 390=head2 sig_sub
391
392 instance
393 () sig_sub(string name)
394
395DESCRIPTION:
396
397The name of this method is passed to POSIX::sigaction(), and handles signals
398for the process manager. If $SIG_CODEREF is set, then the input arguments
399to this are passed to a call to that.
400
401=cut
402
403sub sig_sub {
404 $SIG_CODEREF->(@_) if ref $SIG_CODEREF;
405}
406
518709ed 407=head2 sig_manager
0baf5fac 408
c2bbadb3 409 instance
410 () sig_manager(string name)
411
412DESCRIPTION:
413
414Handles signals of the process manager. Takes as input the name of signal
415being handled.
416
0baf5fac 417=cut
418
518709ed 419sub sig_manager {
420 my ($this,$name) = @_;
50f238cd 421 if ($name eq "TERM") {
c2bbadb3 422 $this->pm_notify("received signal $name");
423 $this->pm_die("safe exit from signal $name");
50f238cd 424 } elsif ($name eq "HUP") {
425 # send a TERM to each of the servers, and pretend like nothing happened..
426 if (my @pids = keys %{$this->{PIDS}}) {
427 $this->pm_notify("sending TERM to PIDs, @pids");
428 kill "TERM", @pids;
429 }
518709ed 430 } else {
431 $this->pm_notify("ignoring signal $name");
432 }
0baf5fac 433}
434
518709ed 435=head1 Handler methods
0baf5fac 436
518709ed 437=head2 handling_init
0baf5fac 438
c2bbadb3 439 instance or export
440 () handling_init()
441
442DESCRIPTION:
443
0baf5fac 444=cut
445
518709ed 446sub handling_init {
c2bbadb3 447 my ($this) = @_;
0baf5fac 448
518709ed 449 # begin to handle signals.
50f238cd 450 # We'll want accept(2) to return -1(EINTR) on caught signal..
451 unless ($this->no_signals()) {
452 sigaction(SIGTERM, $this->{sigaction_no_sa_restart}) or $this->pm_warn("sigaction: SIGTERM: $!");
453 sigaction(SIGHUP, $this->{sigaction_no_sa_restart}) or $this->pm_warn("sigaction: SIGHUP: $!");
454 $SIG_CODEREF = sub { $this->sig_handler(@_) };
455 }
0baf5fac 456
518709ed 457 # change the name of this process as it appears in ps(1) output.
458 $this->pm_change_process_name("perl-fcgi");
7edfbf27 459
460 # Re-srand in case someone called rand before the fork, so that
461 # children get different random numbers.
462 srand;
0baf5fac 463}
464
518709ed 465=head2 pm_pre_dispatch
0baf5fac 466
c2bbadb3 467 instance or export
468 () pm_pre_dispatch()
469
470DESCRIPTION:
471
0baf5fac 472=cut
473
518709ed 474sub pm_pre_dispatch {
4ceac1a1 475 my ($this) = self_or_default(@_);
50f238cd 476
477 # Now, we want the request to continue unhindered..
478 unless ($this->no_signals()) {
479 sigaction(SIGTERM, $this->{sigaction_sa_restart}) or $this->pm_warn("sigaction: SIGTERM: $!");
480 sigaction(SIGHUP, $this->{sigaction_sa_restart}) or $this->pm_warn("sigaction: SIGHUP: $!");
481 }
0baf5fac 482}
483
518709ed 484=head2 pm_post_dispatch
0baf5fac 485
c2bbadb3 486 instance or export
487 () pm_post_dispatch()
488
489DESCRIPTION:
490
0baf5fac 491=cut
492
518709ed 493sub pm_post_dispatch {
4ceac1a1 494 my ($this) = self_or_default(@_);
518709ed 495 if ($this->pm_received_signal("TERM")) {
496 $this->pm_exit("safe exit after SIGTERM");
497 }
498 if ($this->pm_received_signal("HUP")) {
499 $this->pm_exit("safe exit after SIGHUP");
500 }
c2bbadb3 501 if ($this->{MANAGER_PID} and getppid() != $this->{MANAGER_PID}) {
518709ed 502 $this->pm_exit("safe exit: manager has died");
503 }
50f238cd 504 # We'll want accept(2) to return -1(EINTR) on caught signal..
505 unless ($this->no_signals()) {
506 sigaction(SIGTERM, $this->{sigaction_no_sa_restart}) or $this->pm_warn("sigaction: SIGTERM: $!");
507 sigaction(SIGHUP, $this->{sigaction_no_sa_restart}) or $this->pm_warn("sigaction: SIGHUP: $!");
508 }
0baf5fac 509}
510
518709ed 511=head2 sig_handler
0baf5fac 512
c2bbadb3 513 instance or export
514 () sig_handler()
515
516DESCRIPTION:
517
0baf5fac 518=cut
519
518709ed 520sub sig_handler {
c146b63d 521 my ($this,$name) = @_;
518709ed 522 $this->pm_received_signal($name,1);
523}
524
525=head1 Common methods and routines
526
527=head2 self_or_default
528
529 private global
530 (ProcManager, @args) self_or_default([ ProcManager, ] @args);
531
532DESCRIPTION:
533
534This is a helper subroutine to acquire or otherwise create a singleton
535default object if one is not passed in, e.g., a method call.
536
537=cut
538
539sub self_or_default {
540 return @_ if defined $_[0] and !ref $_[0] and $_[0] eq 'FCGI::ProcManager';
541 if (!defined $_[0] or (ref($_[0]) ne 'FCGI::ProcManager' and
4b99386a 542 !UNIVERSAL::isa($_[0],'FCGI::ProcManager'))) {
518709ed 543 $Q or $Q = $FCGI::ProcManager::Default->new;
544 unshift @_, $Q;
0baf5fac 545 }
518709ed 546 return wantarray ? @_ : $Q;
547}
548
549=head2 pm_change_process_name
550
c2bbadb3 551 instance or export
552 () pm_change_process_name()
553
554DESCRIPTION:
555
518709ed 556=cut
557
558sub pm_change_process_name {
559 my ($this,$name) = self_or_default(@_);
560 $0 = $name;
561}
562
563=head2 pm_received_signal
564
c2bbadb3 565 instance or export
566 () pm_received signal()
567
568DESCRIPTION:
569
518709ed 570=cut
571
572sub pm_received_signal {
573 my ($this,$sig,$received) = self_or_default(@_);
574 $sig or return $this->{SIG_RECEIVED};
575 $received and $this->{SIG_RECEIVED}->{$sig}++;
576 return $this->{SIG_RECEIVED}->{$sig};
577}
578
c2bbadb3 579=head1 parameters
580
518709ed 581=head2 pm_parameter
582
c2bbadb3 583 instance or export
584 () pm_parameter()
585
586DESCRIPTION:
587
518709ed 588=cut
589
590sub pm_parameter {
591 my ($this,$key,$value) = self_or_default(@_);
592 defined $value and $this->{$key} = $value;
593 return $this->{$key};
0baf5fac 594}
595
518709ed 596=head2 n_processes
597
598=head2 no_signals
599
600=head2 pid_fname
601
602=head2 die_timeout
603
604=head2 role
605
606=head2 start_delay
607
c2bbadb3 608DESCRIPTION:
609
518709ed 610=cut
611
612sub n_processes { shift->pm_parameter("n_processes", @_); }
613sub pid_fname { shift->pm_parameter("pid_fname", @_); }
614sub no_signals { shift->pm_parameter("no_signals", @_); }
615sub die_timeout { shift->pm_parameter("die_timeout", @_); }
616sub role { shift->pm_parameter("role", @_); }
617sub start_delay { shift->pm_parameter("start_delay", @_); }
618
c2bbadb3 619=head1 notification and death
620
c146b63d 621=head2 pm_warn
0baf5fac 622
c2bbadb3 623 instance or export
624 () pm_warn()
625
626DESCRIPTION:
627
0baf5fac 628=cut
629
4ceac1a1 630sub pm_warn {
631 my ($this,$msg) = self_or_default(@_);
518709ed 632 $this->pm_notify($msg);
633}
634
635=head2 pm_notify
636
c2bbadb3 637 instance or export
638 () pm_notify()
639
640DESCRIPTION:
641
518709ed 642=cut
643
644sub pm_notify {
645 my ($this,$msg) = self_or_default(@_);
646 $msg =~ s/\s*$/\n/;
647 print STDERR "FastCGI: ".$this->role()." (pid $$): ".$msg;
0baf5fac 648}
649
c2bbadb3 650=head2 pm_exit
651
652 instance or export
653 () pm_exit(string msg[, int exit_status])
654
655DESCRIPTION:
0baf5fac 656
657=cut
658
4ceac1a1 659sub pm_exit {
660 my ($this,$msg,$n) = self_or_default(@_);
0baf5fac 661 $n ||= 0;
c2bbadb3 662
663 # if we still have children at this point, something went wrong.
664 # SIGKILL them now.
665 kill "KILL", keys %{$this->{PIDS}} if $this->{PIDS};
666
4ceac1a1 667 $this->pm_warn($msg);
0baf5fac 668 $@ = $msg;
669 exit $n;
670}
671
c146b63d 672=head2 pm_abort
0baf5fac 673
c2bbadb3 674 instance or export
675 () pm_abort(string msg[, int exit_status])
676
677DESCRIPTION:
678
0baf5fac 679=cut
680
4ceac1a1 681sub pm_abort {
682 my ($this,$msg,$n) = self_or_default(@_);
0baf5fac 683 $n ||= 1;
4ceac1a1 684 $this->pm_exit($msg,1);
0baf5fac 685}
686
6871;
688__END__
689
690=head1 BUGS
691
692No known bugs, but this does not mean no bugs exist.
693
694=head1 SEE ALSO
695
696L<FCGI>.
697
9d643399 698=head1 MAINTAINER
699
700Gareth Kirwan <gbjk@thermeon.com>
701
702=head1 AUTHOR
703
704James E Jurach Jr.
705
0baf5fac 706=head1 COPYRIGHT
707
708 FCGI-ProcManager - A Perl FCGI Process Manager
709 Copyright (c) 2000, FundsXpress Financial Network, Inc.
710
711 This library is free software; you can redistribute it and/or
712 modify it under the terms of the GNU Lesser General Public
713 License as published by the Free Software Foundation; either
714 version 2 of the License, or (at your option) any later version.
715
716 BECAUSE THIS LIBRARY IS LICENSED FREE OF CHARGE, THIS LIBRARY IS
717 BEING PROVIDED "AS IS WITH ALL FAULTS," WITHOUT ANY WARRANTIES
718 OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT
719 LIMITATION, ANY IMPLIED WARRANTIES OF TITLE, NONINFRINGEMENT,
720 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND THE
721 ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY,
722 AND EFFORT IS WITH THE YOU. See the GNU Lesser General Public
723 License for more details.
724
725 You should have received a copy of the GNU Lesser General Public
726 License along with this library; if not, write to the Free Software
727 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
728
729=cut