Lines 35-40
use C4::BackgroundJob;
Link Here
|
35 |
use C4::Labels::Batch; |
35 |
use C4::Labels::Batch; |
36 |
use Koha::BiblioFrameworks; |
36 |
use Koha::BiblioFrameworks; |
37 |
|
37 |
|
|
|
38 |
use Koha::Logger; |
39 |
|
38 |
my $script_name = "/cgi-bin/koha/tools/manage-marc-import.pl"; |
40 |
my $script_name = "/cgi-bin/koha/tools/manage-marc-import.pl"; |
39 |
|
41 |
|
40 |
my $input = CGI->new; |
42 |
my $input = CGI->new; |
Lines 330-335
sub put_in_background {
Link Here
|
330 |
# we're now running in the background |
332 |
# we're now running in the background |
331 |
close STDOUT; |
333 |
close STDOUT; |
332 |
close STDERR; |
334 |
close STDERR; |
|
|
335 |
$SIG{__WARN__} = sub { |
336 |
my ($msg) = @_; |
337 |
my $logger = Koha::Logger->get; |
338 |
$logger->warn($msg); |
339 |
} |
333 |
} else { |
340 |
} else { |
334 |
# fork failed, so exit immediately |
341 |
# fork failed, so exit immediately |
335 |
warn "fork failed while attempting to run tools/manage-marc-import.pl as a background job"; |
342 |
warn "fork failed while attempting to run tools/manage-marc-import.pl as a background job"; |
336 |
- |
|
|