in reply to How to make sure that non-Perl programs will respect Perl's file locking?
Naturally, it's always easy to say something like this, however you may be stuck with using flock. In that case, I would research the man pages of the OS you are running to find out the exact behavior of the syscall you're using.sleep( 0.001 ) while ( -r '.lock' ); # You made it here, the file is gone
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to make sure that non-Perl programs will respect Perl's file locking?
by kscaldef (Pilgrim) on Jan 11, 2006 at 18:02 UTC |