diff --git a/src/exit_codes.rs b/src/exit_codes.rs index da0c125..225c5bc 100644 --- a/src/exit_codes.rs +++ b/src/exit_codes.rs @@ -1,13 +1,13 @@ pub enum ExitCode { - Error, - Sigint, + GeneralError, + KilledBySigint, } impl Into for ExitCode { fn into(self) -> i32 { match self { - ExitCode::Error => 1, - ExitCode::Sigint => 130, + ExitCode::GeneralError => 1, + ExitCode::KilledBySigint => 130, } } } diff --git a/src/output.rs b/src/output.rs index 2a7620b..6032a41 100644 --- a/src/output.rs +++ b/src/output.rs @@ -45,7 +45,7 @@ pub fn print_entry(entry: &PathBuf, config: &FdOptions, wants_to_quit: &Arc, config: Arc) { receiver_thread.join().unwrap(); if wants_to_quit.load(Ordering::Relaxed) { - process::exit(ExitCode::Sigint.into()); + process::exit(ExitCode::KilledBySigint.into()); } }