Skip to main content

processes_with_file_open

Function processes_with_file_open 

Source
fn processes_with_file_open(path: &Path) -> Vec<i32>
Expand description

PIDs with path open. Linux: read /proc/<pid>/fd directly, since lsof isn’t installed everywhere (the AppImage doesn’t bundle it and the packages declare no dependencies). Only this user’s processes are readable, which is all an srv we could stop can be.