os.lockf(fd, cmd, len)
Apply, test or remove a POSIX lock on an open file descriptor. fd is an open file descriptor. cmd specifies the command to use - one of F_LOCK
, F_TLOCK
, F_ULOCK
or F_TEST
. len specifies the section of the file to lock.
Availability: Unix.
New in version 3.3.
Please login to continue.