But the logic in the Perl program is different. It subtracts from $read and shortens the buffer by the processed bytes.
I think the Perl program could run into an infinite loop if $read becomes negative, but that doesn't seem to be the problem here...
In reply to Re^2: failing to use getdents system call on Linux
by Corion
in thread failing to use getdents system call on Linux
by glasswalk3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |