You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does actually lock the file but on Ubuntu the code uses flock() internally, these locks are advisory which means there is no actual requirement to follow the locking.
Just execute the code from your console in 2 separate consoles and you will notice the locks but as far as I know there is no standard way to force locking on Ubuntu without changing your mounts to mandatory locking (with -o mand). But even these are known to be buggy unfortunately.
So I did this in one python console (the file already existed)
Then in another python console I did this
Then I do this in a bash console
Am I missing something about how this is supposed to work, or does it just not lock the file?
The text was updated successfully, but these errors were encountered: