Skip to content
Myr

Remove process::exit instance

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 53557ef · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:src/main.rs+1 added-1 removed
310 unmodified lines
311 process::exit(exit_code.into());312 }313 Err(err) => {314 eprintln!("[fd error]: {}", err);315 process::exit(1);315 process::exit(ExitCode::GeneralError.into());316 }317 }318}
modified:src/walk.rs+3 added-3 removed
124 unmodified lines
125 // Wait for the receiver thread to print out all results.126 let exit_code = receiver_thread.join().unwrap();127128 if wants_to_quit.load(Ordering::Relaxed) {129 process::exit(ExitCode::KilledBySigint.into());129 Ok(ExitCode::KilledBySigint)130 } else {131 Ok(exit_code)132 }131132 Ok(exit_code)133}134135fn spawn_receiver(136 config: &Arc<Options>,
304 unmodified lines