[EMAIL PROTECTED] wrote: > >> ith a quick look. >> > > > f = open("/path/to/data/directory/lockfile","r") > try: > fcntl.flock(f.fileno(),fcntl.LOCK_EX) > ...access data freely here... > finally: > f.close() > > Closing the file should release the lock (unless you have a truly > horrible operating system). > > I also find that fcntl has problems with NFS (or at least, *I* had problems using the python fcntl module and nfs - could be that horrible operating system, but doing things like that over nfs can be tricky).
-carl -- Carl J. Van Arsdall [EMAIL PROTECTED] Build and Release MontaVista Software -- http://mail.python.org/mailman/listinfo/python-list