>Are there any other problems anyone sees?
Possibly the use of $lock_type. It looks like you're assuming that the flock() will fail if the file is already locked. That's true only on non-blocking filehandles or using LOCK_NB or'd with the second argument of flock(). Otherwise it's going to stop there and wait for the lock until it's available.
And beware of flock'ing filehandles that are already open...
In reply to Re: Filename from filehandle?
by clintp
in thread Filename from filehandle?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |