Debian byg 227621 (http://bugs.debian.org/227621) reports OOM problems
processing /etc/group files with large lines.

The bug reporter notes that the OOM is avoided by opening a random file
within the loop:

>#!/usr/bin/perl
>
>while (my @gr=getgrent()) {
>  print $gr[0] . "\n";
>  open(F,"</etc/passwd");close(F);
>}
>print "End\n"

Any suggestions?

--bod


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Reply via email to