Skip to main content

remember

Function remember 

Source
pub fn remember(record: &Path, appimage: &Path, channel: &str) -> Result<()>
Expand description

Remember that the file at appimage runs in channel.

The whole read, change and write is one turn under [lock_record]: without it two starts at once each read the same records and the later write drops the earlier one’s entry. When the lock can’t be had (another start holds it for longer than [LOCK_TIMEOUT]) nothing is written, and the entry comes back from the record beside the file at its next start.