feat: Abort immedietly when ^C is received. (#478)

Previously, we attempted to perform a clean shutdown, which could take a
significant period of time on slow filesystems. This commit changes the
shutdown logic to abort immedietly when ^C is received by the program.
This commit is contained in:
Aidan Beggs
2025-03-30 12:35:28 -04:00
committed by GitHub
parent dd799706fb
commit 733abb2a3f
3 changed files with 1 additions and 20 deletions
-4
View File
@@ -206,10 +206,6 @@ fn walk(dir: PathBuf, walk_data: &WalkData, depth: usize) -> Option<Node> {
let prog_data = &walk_data.progress_data;
let errors = &walk_data.errors;
if errors.lock().unwrap().abort {
return None;
}
let children = if dir.is_dir() {
let read_dir = fs::read_dir(&dir);
match read_dir {