Commit | Line | Data |
3347bf0d |
1 | * ProcManager::Constrained: Add a new FCGI::ProcManager::Constrainted |
2 | subclass which will restart workers safely after a certain number of |
3 | requests, or at certain memory thresholds. |
4 | |
356c720b |
5 | 0.19 2009-07-22 Gareth Kirwan <gbjk@cpan.org> |
6 | |
7 | * ProcManager.pm: Add a pm_title option to configure the process title |
8 | assigned to $0 |
9 | |
10 | 0.18 2007-12-18 James Jurach <muaddib@erf.net> |
11 | |
12 | * ProcManager.pm: Remove constraint that parent process cannot die. |
13 | |
9d643399 |
14 | 0.17 |
15 | |
16 | * ProcManager.pm: Remove constraint that process can't change pid. |
17 | This resolves the daemon exiting after first child dies |
18 | if the process id of the daemon has changed since starting. |
19 | This commonly happens when a script waits to check for the |
20 | socket being available and working before forking and exitting. |
21 | It can also happen in a race condition of fork && exit when |
22 | the exit is delayed until after the forked child has already |
23 | spawned the fastcgi handlers. |
24 | |
50f238cd |
25 | 2001-04-23 18:12 James Jurach <muaddib@erf.net> |
26 | |
27 | * ProcManager.pm: SIGHUP handler now issues SIGTERM to children but |
28 | then proceeds normally. added documentation blurb about signal |
29 | handling. we now use POSIX::sigaction() to avoid SA_RESTART during |
30 | certain regions. added re-usable POSIX::SigAction members to toggle |
31 | SA_RESTART. added sig_sub() -- necessary to pass name to |
32 | POSIX::SigAction creation. |
33 | |
34 | * README: added small blurb to consult FCGI::ProcManager |
35 | documentation. |
36 | |
37 | * t/exporter.t: |
38 | * t/procmanager.t: fixed pm_manage() test. |
39 | |
40 | 2001-03-13 18:12 James Jurach <muaddib@erf.net> |
41 | |
42 | * ProcManager.pm: removed check for FCGI_ROLE. now more |
43 | transparent when undesired. |
44 | |
45 | * ProcManager.pm: detect when no FastCGI environment exists. |
46 | |
47 | * ProcManager.pm: only warn and sleep -- do not abort on fork |
48 | failure. |
49 | |
50 | * ProcManager.pm: now, we give notification to which processes we |
51 | send a TERM signal. |
52 | |
c2bbadb3 |
53 | 2001-02-09 10:16 James Jurach <muaddib@erf.net> |
54 | |
55 | * t/: exporter.t, procmanager.t: made it easier to manage |
56 | sample_request_loop() for testing. |
57 | |
58 | * ProcManager.pm: modified some error messages. added immediate |
59 | notify of manager signal. |
60 | |
61 | * ProcManager.pm: added more documentation. renamed |
62 | pm_reap_server() to pm_wait(). fixed problem when ! MANAGER_PID |
63 | that caused server to die immediately we now delete list of child |
64 | PIDs from each child. added mechanism to pm_exit() to send a |
65 | SIGKILL to any remaining children. |
66 | |
518709ed |
67 | 2001-01-31 01:13 James Jurach <muaddib@erf.net> |
68 | |
69 | * README: more documentation |
70 | |
71 | * ProcManager.pm: re-organized method layout. separated manager |
72 | vs. server vs. common moved more intialization into managing_init() |
73 | and handling_init() created pm_die() to be called when manager |
74 | should die. cleaned up error messages and notifications. |
75 | |
76 | * t/: exporter.t, procmanager.t: revised test messages |
77 | |
78 | 2001-01-30 16:35 James Jurach <muaddib@erf.net> |
79 | |
80 | * t/: exporter.t, procmanager.t: removed call to pm_state() |
81 | |
82 | * ProcManager.pm: removed sleep() call after testing |
83 | signal-during-fork-loop |
84 | |
85 | 2001-01-30 12:49 James Jurach <muaddib@erf.net> |
86 | |
87 | * ProcManager.pm: Cleaned up pm_manage(). removed signal |
88 | registration routines. replaced by direct %SIG access. there is |
89 | now a manager signal handler and a handler signal handler. added |
90 | checks to die when getppid() changes. |
91 | |
92 | 2001-01-20 02:06 James Jurach <muaddib@erf.net> |
93 | |
94 | * MANIFEST: removed Changes from MANIFEST |
95 | |
96 | 2001-01-13 00:44 James Jurach <muaddib@erf.net> |
97 | |
98 | * t/procmanager.t: corrected various recent method name changes. |
99 | removed calls to want_to_die(). added request loop hooks to |
100 | pm_pre_dispatch(), pm_post_dispatch(). renamed sample_handler() to |
101 | sample_request_loop(). |
102 | |
103 | * ProcManager.pm: renamed request loop hooks to pm_pre_dispatch(), |
104 | pm_post_dispatch(). when pm_manage() is called with |
105 | n_processes==0, return through goto. renamed pre_manage_init() to |
106 | managing_init(). renamed post_manage_init() to handling_init(). |
107 | added received_signal() to remember that a signal was received. |
108 | signal handler simpler: now only notes signal and propagates |
109 | signal. |
110 | |
111 | * t/exporter.t: this uses non-OO calling mode. |
112 | |
113 | * MANIFEST: added t/exporter.t. |
114 | |
115 | * Changes: ChangeLog is where per-file changes are listed. |
116 | |
117 | 2000-12-22 05:58 James Jurach <muaddib@erf.net> |
118 | |
119 | * ProcManager.pm: corrected logic error in self_or_default(). |
120 | changed all occurances of write_pid_file() to pm_write_pid_file(). |
121 | changed all occurances of remove_pid_file() to |
122 | pm_remove_pid_file(). |
123 | |
124 | 2000-12-14 17:54 James Jurach <muaddib@erf.net> |
125 | |
126 | * ProcManager.pm: corrected state() -> pm_state() method call. |
127 | |
128 | 2000-12-10 17:25 James Jurach <muaddib@erf.net> |
129 | |
130 | * ProcManager.pm: corrected some method renaming issues. |
131 | |
132 | 2000-12-09 19:48 James Jurach <muaddib@erf.net> |
133 | |
134 | * t/procmanager.t: effected the changes to these subroutine names. |
135 | |
136 | * ProcManager.pm: made this module OO/Exporter hybrid. removed |
137 | treatment of $ENV{PROCMANAGER_PROCESSES} from constructor. changed |
138 | several subroutine names. |
139 | |
140 | 2000-12-05 22:23 James Jurach <muaddib@erf.net> |
141 | |
142 | * ProcManager.pm: made SIGHUP's do what SIGTERM's do |
143 | |
144 | 2000-11-20 James Jurach <muaddib@erf.net> |
145 | |
146 | * Released first public version. |