Ticket #2057: change_to_sysseek.diff
File change_to_sysseek.diff, 677 bytes (added by , 18 years ago) |
---|
-
modules/stream/handler.pl
103 103 ); 104 104 105 105 # Seek to the requested position 106 s eek DATA, $start, 0;106 sysseek DATA, $start, 0; 107 107 108 108 # Print the content to the browser 109 109 my $buffer; … … 115 115 $readsize = $size = $cur_pos; 116 116 } 117 117 # Print the data to the browser 118 read DATA, $buffer, $readsize;118 sysread DATA, $buffer, $readsize; 119 119 print $buffer; 120 120 # Time to leave? 121 121 last if ($cur_pos + $readsize >= $size);