On Mon Oct 22 21:57:15 2007, ANDK wrote:
Show quoted text> While running make test the following files were dropped into /tmp.
> Could they be cleaned up, please?
>
> -rw-rw-r-- 1 sand sand 0 2007-10-23 03:50:01
> Apache-Session-6319306fc6eca1
> 6a80bd22cc57c05282.lock
> -rw-rw-r-- 1 sand sand 0 2007-10-23 03:50:01
> Apache-Session-249edf102f947d
> f1b8f286c795693978.lock
> -rw-rw-r-- 1 sand sand 56 2007-10-23 03:50:01
> 6319306fc6eca16a80bd22cc57c05
> 282
> -rw-rw-r-- 1 sand sand 56 2007-10-23 03:50:01
> 249edf102f947df1b8f286c795693
> 978
>
>
> Thanks!
I ran into the same 2 lock files being created in /tmp and not
cleaned up using version 1.81, I worked around the problem by
switching the Lock type to "Null" in 99flex.t
<< Lock => 'File',
Show quoted text>> Lock => 'Null',
<< isa_ok $session->{lock_manager}, 'Apache::Session::Lock::File';
Show quoted text>> isa_ok $session->{lock_manager}, 'Apache::Session::Lock::Null';
<< Lock => 'File',
Show quoted text>> Lock => 'Null',
The docs do talk about this behaviour:
http://search.cpan.org/dist/Apache-Session/Session/Lock/File.pm#NOTES
Probably a better cleanup for the test would be to use the code
provided in the docs:
my $l = new Apache::Session::Lock::File;
$l->clean('/var/lock/sessions', 3600) #remove files older than 1 hour
Peter (Stig) Edwards