Subject: | "closedir() attempted on invalid dirhandle DIR" in Perl 5.10 |
Hello DeWitt.
File::Cache produces a lot if warnings "closedir() attempted on invalid
dirhandle DIR" in Perl 5.10, probably because of recursive calls.
It can be fixed by calling "closedir(DIR)" right after "readdir(DIR)".
I've attached a patch, that fixes this problem.
--
Serguei Trouchelle
Subject: | Cache.pm.diff |
1231a1232,1233
> closedir(DIR);
>
1287,1288d1288
< closedir(DIR);
<
1342a1343,1344
> closedir(DIR);
>
1390,1391d1391
< closedir(DIR);
<
1668a1669,1670
> closedir(DIR);
>
1683,1684d1684
<
< closedir(DIR);