Bug 15189: Do not close STDERR when running in background mode

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 <hector.hecaxmmx@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 7be97133ee)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Jonathan Druart 2015-11-13 16:22:03 +00:00 committed by Frédéric Demians
parent c430cf453f
commit e607a03190
1 changed files with 0 additions and 1 deletions

View File

@ -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;