don't hose the cpu by using read instead of input

This commit is contained in:
Mariano Alvira 2009-05-09 15:43:22 -04:00
parent e50480adea
commit 963d7a69de

View File

@ -110,8 +110,10 @@ print ",\n";
$ob->write(@ARGV);
$ob->write(',');
my $c; my $count;
while(1) {
print $ob->input;
($count, $c) = $ob->read(1);
print $c if ($count != 0);
}
$ob -> close or die "Close failed: $!\n";