|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: Timing out flock (fwd)
|
BV> Will this work this way?
Have you tried it?
It looks like a normal use of alarm for timing things out, although I
didn't analyze it fully. But note, that use of _any_ signals can
cause problems in perl. This simple use should be safe.
But it seems there is a bigger problem here -
1- Why is your CGI blocking? Might this be somewhere you need a
database with row level locking?
2- Why is it blocking for so long that it is causing a problem.
Exclusion primitives (locks) should be held for as short a time as
possible.
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|