View | Details | Raw Unified | Return to bug 40947
Collapse All | Expand All

(-)a/misc/migration_tools/rebuild_zebra.pl (+11 lines)
Lines 254-259 my $dbh; Link Here
254
# option (wait-for-lock) is provided to let the program wait for the lock.
254
# option (wait-for-lock) is provided to let the program wait for the lock.
255
# See https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11078 for details.
255
# See https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11078 for details.
256
if ($daemon_mode) {
256
if ($daemon_mode) {
257
258
    $SIG{TERM} = sub {
259
        $dbh->disconnect if $dbh;
260
        exit 0;
261
    };
262
263
    $SIG{INT} = sub {
264
        $dbh->disconnect if $dbh;
265
        exit 0;
266
    };
267
257
    while (1) {
268
    while (1) {
258
269
259
        # For incremental updates, skip the update if the updates are locked
270
        # For incremental updates, skip the update if the updates are locked
(-)a/t/lib/Mocks/Zebra.pm (-3 / +2 lines)
Lines 274-281 Missing POD for cleanup. Link Here
274
274
275
sub cleanup {
275
sub cleanup {
276
    my ($self) = @_;
276
    my ($self) = @_;
277
    kill 9, $self->{zebra_pid}   if defined $self->{zebra_pid};
277
    kill 15, $self->{zebra_pid}   if defined $self->{zebra_pid};
278
    kill 9, $self->{indexer_pid} if defined $self->{indexer_pid};
278
    kill 15, $self->{indexer_pid} if defined $self->{indexer_pid};
279
279
280
    # Clean up the Zebra files since the child process was just shot
280
    # Clean up the Zebra files since the child process was just shot
281
    rmtree $self->{datadir};
281
    rmtree $self->{datadir};
282
- 

Return to bug 40947