Location (URL)
https://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.lock
Summary
The current documentation doesn't mention "process" in the lock/lock_shared methods at all. The only clue without either prior knowledge or reading the man pages that these methods do work across processes is this line:
This acquires an exclusive lock; no other file handle to this file may acquire another lock.
But this requires understanding what relation a file handle has to the file, etc. We should make the use for these methods clearer to readers.
Location (URL)
https://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.lock
Summary
The current documentation doesn't mention "process" in the lock/lock_shared methods at all. The only clue without either prior knowledge or reading the man pages that these methods do work across processes is this line:
But this requires understanding what relation a file handle has to the file, etc. We should make the use for these methods clearer to readers.