Skip to main content

lock_path

Function lock_path 

Source
pub fn lock_path() -> PathBuf
Expand description

Compute the per-tty lock-file path per FR-029.

Resolution order: $TMPDIR > $TMP > std::env::temp_dir(). The filename incorporates the tty device identifier (Unix only) so each tty gets its own lock and multi-user systems can safely share /tmp.