mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 09:28:25 +01:00
Clarifying comments
This commit is contained in:
parent
394e967b5f
commit
154cd6e329
2 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,8 @@ pub fn execute_command(mut cmd: Command, out_perm: &Mutex<()>, is_multithread: b
|
|||
if is_multithread {
|
||||
output = cmd.output();
|
||||
} 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");
|
||||
output = child.wait_with_output();
|
||||
}
|
||||
|
|
|
@ -170,6 +170,7 @@ fn spawn_receiver(
|
|||
|
||||
let show_filesystem_errors = config.show_filesystem_errors;
|
||||
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 {
|
||||
true
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue