[Python-Dev] Does Python need a file locking module (slightly higher level)?
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Oct 23 01:16:41 CEST 2007
skip at pobox.com wrote:
> This interface follows the completely stupid semantics of System V and
> IEEE Std 1003.1-1988 (``POSIX.1'') that require that all locks
> associated with a file for a given process are removed when any file
> descriptor for that file is closed by that process.... Flock(2) is
> recommended for applications that want to ensure the integrity of their
> locks when using library routines or wish to pass locks to their
> children.
>
> I guess the BSD folks were a bit upset when they wrote that.
That sounds more like something written by the GNU folks than
the BSD folks.
--
Greg
More information about the Python-Dev
mailing list