Greetings.

[...]
> 
> 
> Rob Bloodgood wrote:
> 
> >I tried Apache::Session::File, but after MUCH hair-pulling 
> it seems that the
> >Lock mechanism is COMPLETELY hosed (things are either never 
> locked or never
> >unlocked, or something...)
> >  
> >
> 
> AFAIK, Win32 has no flock.
> 

I once ran into the same problem - and my (superficial) analysis was that
locks are not released for a reason that appears related to the
multithreaded nature of
the server...(for me, it was Apache).

However, perlopentut says:

"Perl's most portable locking interface is via the flock function, whose
simplicity is emulated on systems that don't directly support it, such as
SysV or WindowsNT. The underlying semantics may affect how it all works, so
you should learn how flock is implemented on your system's port of Perl."

And perl's flock certainly appear to work between different processes on NT.
FOr the record, I eventually resorted to null locking as well.

Cheers,
alf

Reply via email to