Lines 99-104
try {
Link Here
|
99 |
|
99 |
|
100 |
my $pm = Parallel::ForkManager->new($max_processes); |
100 |
my $pm = Parallel::ForkManager->new($max_processes); |
101 |
|
101 |
|
|
|
102 |
$SIG{ALRM} = sub { |
103 |
$pm->reap_finished_children(); |
104 |
alarm(1); |
105 |
}; |
106 |
alarm(1); |
107 |
|
102 |
if ( $conn ) { |
108 |
if ( $conn ) { |
103 |
# FIXME cf note in Koha::BackgroundJob about $namespace |
109 |
# FIXME cf note in Koha::BackgroundJob about $namespace |
104 |
my $namespace = C4::Context->config('memcached_namespace'); |
110 |
my $namespace = C4::Context->config('memcached_namespace'); |
105 |
- |
|
|