in reply to Filename from filehandle?
>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...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Filename from filehandle?
by Xxaxx (Monk) on Apr 24, 2001 at 10:40 UTC | |
by tilly (Archbishop) on Apr 25, 2001 at 02:25 UTC | |
by clintp (Curate) on Apr 25, 2001 at 05:01 UTC |