On Fri, 7 Apr 2000, Russell D. Weiss wrote:
> Normally, this works great. No problem at all. This object goes out of
> scope at the end of the script (it's scoped lexically with "my"). It also
> goes out of scope when "die" is explicitly called. If I add "die 'Blah blah
> blah'" to an app, things are fun. BUT... sometimes when there's a syntax
> error in the code, this object just stays in scope. This causes a real
> problem, because then the developer will just re-load. The process will sit
> there forever, waiting for the session lock to go away. But it never
> does...
You could try using a PerlCleanupHandler to kill any open locks.
$r->register_cleanup( \&clear_locks );
- Perrin