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:
cls%seawood.org 2006-09-23 03:56:47 +00:00
parent 01164a65a2
commit d2ea3bde5a

View File

@ -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();