mirror of
https://github.com/sharkdp/fd
synced 2024-09-15 14:10:41 +00:00
Fixing exec hang by disabling ctrl-c handling for exec
This commit is contained in:
parent
1045930dd9
commit
bc2b7a33ae
|
@ -89,7 +89,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<FdOptions>) {
|
|||
let wants_to_quit = Arc::new(AtomicBool::new(false));
|
||||
let receiver_wtq = Arc::clone(&wants_to_quit);
|
||||
let sender_wtq = Arc::clone(&wants_to_quit);
|
||||
if config.ls_colors.is_some() {
|
||||
if config.ls_colors.is_some() && config.command.is_none() {
|
||||
let wq = Arc::clone(&receiver_wtq);
|
||||
ctrlc::set_handler(move || {
|
||||
wq.store(true, Ordering::Relaxed);
|
||||
|
|
Loading…
Reference in a new issue