>>595You couldd fake the file locking with a symlink and avoid the flock() call. Make a symlink somewhere (it doesn't even have to point anywhere, really), spin until the link succeeds, and unlink it when the script exits.