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

(-)a/tools/stage-marc-import.pl (-6 lines)
Lines 128-138 if ($completedJobID) { Link Here
128
            # Otherwise, the AJAX request to this script won't return properly
128
            # Otherwise, the AJAX request to this script won't return properly
129
            close STDOUT;
129
            close STDOUT;
130
            close STDERR;
130
            close STDERR;
131
            my $logdir = C4::Context->config('logdir');
132
            if ($logdir && -d $logdir){
133
                my $logfile = sprintf("%s/%s",$logdir,'background-jobs.log');
134
                open(STDERR, '>>', $logfile);
135
            }
136
        } else {
131
        } else {
137
            # fork failed, so exit immediately
132
            # fork failed, so exit immediately
138
            warn "fork failed while attempting to run tools/stage-marc-import.pl as a background job: $!";
133
            warn "fork failed while attempting to run tools/stage-marc-import.pl as a background job: $!";
139
- 

Return to bug 26854