mirror of https://github.com/sharkdp/fd.git
Clarifying comments
This commit is contained in:
parent
394e967b5f
commit
154cd6e329
|
@ -13,7 +13,8 @@ pub fn execute_command(mut cmd: Command, out_perm: &Mutex<()>, is_multithread: b
|
||||||
if is_multithread {
|
if is_multithread {
|
||||||
output = cmd.output();
|
output = cmd.output();
|
||||||
} else {
|
} else {
|
||||||
// This sort of works:
|
// If running on only one thread, don't buffer output
|
||||||
|
// Allows for viewing and interacting with intermediate command output
|
||||||
let child = cmd.spawn().expect("Failed to execute command");
|
let child = cmd.spawn().expect("Failed to execute command");
|
||||||
output = child.wait_with_output();
|
output = child.wait_with_output();
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,6 +170,7 @@ fn spawn_receiver(
|
||||||
|
|
||||||
let show_filesystem_errors = config.show_filesystem_errors;
|
let show_filesystem_errors = config.show_filesystem_errors;
|
||||||
let threads = config.threads;
|
let threads = config.threads;
|
||||||
|
// This will be used to check if output should be buffered when only running a single thread
|
||||||
let is_multithread: bool = if threads > 1 {
|
let is_multithread: bool = if threads > 1 {
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue