Skip to main content

warm_executable

Function warm_executable 

Source
pub fn warm_executable(path: &Path) -> Result<()>
Expand description

Read path into the OS file cache without executing it.

The file length is taken from metadata so special files with no end (such as /dev/zero) cannot hang the caller. Missing, unreadable or directory paths return an error. Replacement treats those errors as non-fatal.