From e607a03190bc07c470c43b1945a4b448df2d5fcb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Nov 2015 16:22:03 +0000 Subject: [PATCH] Bug 15189: Do not close STDERR when running in background mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The batch records modification tool close STDERR, it's useless and hide warnings/errors. Like the other processes using the BackgroundJob module, this one should let it open. Signed-off-by: Hector Castro Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 7be97133eeb350fa65fea667a149d000bf348ecc) Signed-off-by: Frédéric Demians --- tools/batch_record_modification.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/batch_record_modification.pl b/tools/batch_record_modification.pl index a1bde0f9d7..433d7b9e4a 100755 --- a/tools/batch_record_modification.pl +++ b/tools/batch_record_modification.pl @@ -167,7 +167,6 @@ if ( $op eq 'form' ) { exit 0; } elsif (defined $pid) { close STDOUT; - close STDERR; } else { warn "fork failed while attempting to run $ENV{'SCRIPT_NAME'} as a background job"; exit 0;