Skip to content
Myr

Fixing exec hang by disabling ctrl-c handling for exec

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

authored by Dock O'Neal · committed by David Peter · parent 1045930 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/walk.rs+1 added-1 removed
87 unmodified lines
8889 let wants_to_quit = Arc::new(AtomicBool::new(false));90 let receiver_wtq = Arc::clone(&wants_to_quit);91 let sender_wtq = Arc::clone(&wants_to_quit);92 if config.ls_colors.is_some() {92 if config.ls_colors.is_some() && config.command.is_none() {93 let wq = Arc::clone(&receiver_wtq);94 ctrlc::set_handler(move || {95 wq.store(true, Ordering::Relaxed);96 }).unwrap();
159 unmodified lines