mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
A presumed bug in bzreadline causes the script to hang indefinitely on certain messages. Use bzread instead.
Bug #353674 r=justdave
This commit is contained in:
parent
01164a65a2
commit
d2ea3bde5a
@ -292,7 +292,7 @@ sub compress_log_file {
|
||||
my $comp_gz = gzopen($decoded, "rb") or
|
||||
die ("$decoded: $!\n");
|
||||
my ($bytesread, $line);
|
||||
while (($bytesread = $comp_gz->gzreadline($line)) > 0) {
|
||||
while (($bytesread = $comp_gz->gzread($line)) > 0) {
|
||||
$gz->gzwrite($line);
|
||||
}
|
||||
$comp_gz->gzclose();
|
||||
@ -300,7 +300,7 @@ sub compress_log_file {
|
||||
my $comp_bz = bzopen($decoded, "rb") or
|
||||
die ("$decoded: $!\n");
|
||||
my ($bytesread, $line);
|
||||
while (($bytesread = $comp_bz->bzreadline($line)) > 0) {
|
||||
while (($bytesread = $comp_bz->bzread($line)) > 0) {
|
||||
$gz->gzwrite($line);
|
||||
}
|
||||
$comp_bz->bzclose();
|
||||
|
Loading…
Reference in New Issue
Block a user