--- a/bin/amdumpext Mon Dec 16 21:05:22 2013 +0100
+++ b/bin/amdumpext Mon Dec 16 21:19:41 2013 +0100
@@ -424,6 +424,8 @@
sub exec_validate {
my $pid = fork // die "Can't fork: $!\n";
+ open(STDOUT, '>', '/dev/null')
+ or die "Can't redirect STDOUT to /dev/null: $!\n";
# the first part goes into restore
# but restore stops reading after the directory
@@ -436,8 +438,6 @@
# read the remaining dump via cat, I think,
# nobody is fast than cat
- open(STDOUT, '>', '/dev/null')
- or die "Can't redirect STDOUT to >/dev/null: $!\n";
exec 'cat';
die "Can't exec `cat': $!\n";
}