File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1214,13 +1214,19 @@ sub post_bind_hook {
1214
1214
sub pre_fork_hook {
1215
1215
return if $_ [1]; # && $_[1] eq 'dequeue';
1216
1216
++$_ [0]-> {spampd }-> {runtime_stats }-> {child_count };
1217
+ ($_ [0]-> {spampd }-> {sa_version } >= 3) and eval {
1218
+ $_ [0]-> {assassin }-> call_plugins(" prefork_init" );
1219
+ }
1217
1220
}
1218
1221
1219
1222
# Net::Server hook: new child starting
1220
1223
sub child_init_hook {
1221
1224
return if $_ [1]; # && $_[1] eq 'dequeue';
1222
1225
# set process name to help clarify via process listing which is child/parent
1223
1226
$_ [0]-> update_child_name();
1227
+ ($_ [0]-> {spampd }-> {sa_version } >= 3) and eval {
1228
+ $_ [0]-> {assassin }-> call_plugins(" spamd_child_init" );
1229
+ }
1224
1230
}
1225
1231
1226
1232
# Net::Server hook: about to exit child process
You can’t perform that action at this time.
0 commit comments