# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1387225181 -3600 # Node ID 9e30f40ffb3431f899b17730d3c32943b73a3d16 # Parent 9ad262d8c301777cd3723c45710804f7714b97e4 redirect STDOUT to /dev/null diff -r 9ad262d8c301 -r 9e30f40ffb34 bin/amdumpext --- 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"; }