Provides access to the fcntl() system call and file-locking operations
Voorbeeld:
import fcntl, FCNTL
# Lock a file
fcntl.flock(f.fileno(),FCNTL.LOCK_EX)
Add A Comment
You must be logged in to post a comment.
Provides access to the fcntl() system call and file-locking operations
Voorbeeld:
import fcntl, FCNTL
# Lock a file
fcntl.flock(f.fileno(),FCNTL.LOCK_EX)
You must be logged in to post a comment.