Clarifying comments

This commit is contained in:
Max Triano 2020-06-23 15:28:15 -04:00 committed by David Peter
parent 394e967b5f
commit 154cd6e329
2 changed files with 3 additions and 1 deletions

View file

@ -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();
}

View file

@ -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 {