Subject: | Plucene::Utils::do_locked needs to close FH |
Plucene::Utils::do_locked needs to close FH
otherwise it needs to carp out and sleep for no reason (on my machine about 5 times)
before it can successfully unlink
Also, on Mac you run out of filehandles
http://rt.cpan.org/NoAuth/Bug.html?id=5815
Simply change line
unlink $lock;
to
unlink $lock or close *FH and unlink $lock;
i don't know if that will break anything, but
I run the test suite on my win32 activeperl and all test pass
and this time the test suite runs TONS faster