Ticket #2057: change_to_sysseek.diff

File change_to_sysseek.diff, 677 bytes (added by adrian.wilkins@…, 18 years ago)

Patches handler.pl to use system IO calls

  • modules/stream/handler.pl

     
    103103                );
    104104
    105105# Seek to the requested position
    106     seek DATA, $start, 0;
     106    sysseek DATA, $start, 0;
    107107
    108108# Print the content to the browser
    109109    my $buffer;
     
    115115            $readsize = $size = $cur_pos;
    116116        }
    117117    # Print the data to the browser
    118         read DATA, $buffer, $readsize;
     118        sysread DATA, $buffer, $readsize;
    119119        print $buffer;
    120120    # Time to leave?
    121121        last if ($cur_pos + $readsize >= $size);