Expand description
inotify on the files that decide the lists and the next start: the
two catalog files and the unit’s environment file. Each is
replaced by a rename (scxcli writes through a scratch file), so the
watch is on the directories, for the names in question. A change
triggers one scxcli list on the next tick instead of a timer.
The unit’s state and the kernel’s are not files inotify can watch, so those keep the slow poll in the event loop.
Re-exports§
use std::collections::HashSet;🔒use std::ffi::OsString;🔒use std::path::Path;🔒use std::path::PathBuf;🔒use anyhow::Context;🔒use anyhow::Result;🔒use inotify::EventMask;🔒use inotify::Inotify;🔒use inotify::WatchMask;🔒