It's STDOUT we have to shut up for cvs, and $savedout has to be
restored just so.master
parent
9de742bb00
commit
d79cf3728d
|
@ -105,10 +105,10 @@ sub cvs_runcvs(@) {
|
||||||
|
|
||||||
chdir $config{srcdir} || error("Cannot chdir to $config{srcdir}: $!");
|
chdir $config{srcdir} || error("Cannot chdir to $config{srcdir}: $!");
|
||||||
|
|
||||||
open(my $savederr, ">&STDERR");
|
open(my $savedout, ">&STDOUT");
|
||||||
open(STDERR, ">", "/dev/null");
|
open(STDOUT, ">", "/dev/null");
|
||||||
my $ret = system(@cmd);
|
my $ret = system(@cmd);
|
||||||
open(STDERR, ">$savederr");
|
open(STDOUT, ">&", $savedout);
|
||||||
|
|
||||||
return ($ret == 0) ? 1 : 0;
|
return ($ret == 0) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue