Skip to main content

cache_lock_path

Function cache_lock_path 

Source
pub fn cache_lock_path() -> PathBuf
Expand description

Advisory-lock file guarding a whole compsys.db rebuild: $ZSHRS_HOME/compsys.db.lock.

Separate from the database file because the rebuild replaces that file by rename(2); a lock taken on the db inode would be dropped on the floor the moment the new inode landed.