.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "FCGI::Engine::ProcManager 3pm" .TH FCGI::Engine::ProcManager 3pm "2022-12-10" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" FCGI::Engine::ProcManager \- module for managing FastCGI applications. .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module is a refactoring of FCGI::ProcManager, it behaves exactly the same, but the \s-1API\s0 is a little different. The function-oriented \s-1API\s0 has been removed in favor of object-oriented \s-1API.\s0 The \f(CW\*(C`pm_\*(C'\fR prefix has been removed from the hook routines and instead they now use the \f(CW\*(C`augment\*(C'\fR and \f(CW\*(C`inner\*(C'\fR functionality from Moose. More docs will come eventually. .SS "Signal Handling" .IX Subsection "Signal Handling" FCGI::Engine::ProcManager attempts to do the right thing for proper shutdowns. .PP When it receives a \s-1SIGHUP,\s0 it sends a \s-1SIGTERM\s0 to each of its children, and then resumes its normal operations. .PP When it receives a \s-1SIGTERM,\s0 it sends a \s-1SIGTERM\s0 to each of its children, sets an \fBalarm\fR\|(3) \*(L"die timeout\*(R" handler, and waits for each of its children to die. If all children die before this timeout, process manager exits with return status 0. If all children do not die by the time the \*(L"die timeout\*(R" occurs, the process manager sends a \s-1SIGKILL\s0 to each of the remaining children, and exists with return status 1. .PP FCGI::Engine::ProcManager uses \fBPOSIX::sigaction()\fR to override the default \&\s-1SA_RESTART\s0 policy used for perl's \f(CW%SIG\fR behavior. Specifically, the process manager never uses \s-1SA_RESTART,\s0 while the child FastCGI servers turn off \&\s-1SA_RESTART\s0 around the accept loop, but re-enstate it otherwise. .PP The desired (and implemented) effect is to give a request as big a chance as possible to succeed and to delay their exits until after their request, while allowing the FastCGI servers waiting for new requests to die right away. .SH "METHODS" .IX Header "METHODS" I will fill this in more eventually, but for now if you really wanna know, read the source. .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "FCGI::ProcManager" 4 .IX Item "FCGI::ProcManager" This module is a fork of the FCGI::ProcManager code, with lots of code cleanup as well as general Moosificaition. .SH "BUGS" .IX Header "BUGS" All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. .SH "AUTHOR" .IX Header "AUTHOR" Stevan Little .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright 2007\-2010 by Infinity Interactive, Inc. .PP .PP This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.