It's STDOUT we have to shut up for cvs, and $savedout has to be

restored just so.
master
Amitai Schlair 2009-09-04 14:56:55 -05:00
parent 9de742bb00
commit d79cf3728d
1 changed files with 3 additions and 3 deletions

View File

@ -105,10 +105,10 @@ sub cvs_runcvs(@) {
chdir $config{srcdir} || error("Cannot chdir to $config{srcdir}: $!");
open(my $savederr, ">&STDERR");
open(STDERR, ">", "/dev/null");
open(my $savedout, ">&STDOUT");
open(STDOUT, ">", "/dev/null");
my $ret = system(@cmd);
open(STDERR, ">$savederr");
open(STDOUT, ">&", $savedout);
return ($ret == 0) ? 1 : 0;
}