Quote:
Originally Posted by superuser84
Btw, where is the information that the file is locked stored ? How does another process (still using flock) know that a file is locked and has to sleep till unlocked ?
|
Note: I'm getting a little bit in over my head now so take this with a grain of salt
The flock function makes a flock system call so the OS will handle it - ie the filesystem itself records the lock and polices it.