summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Triano <mtriano234@gmail.com>2020-06-23 15:28:15 -0400
committerDavid Peter <mail@david-peter.de>2021-07-27 09:13:54 +0200
commita8951f0641403b0a81ef54da6c0e2aaeabd46297 (patch)
treeff07366825d6599b9bacba0ee55403d59998873c
parent5860dedb1e260c6035e12b984bdbc240414547fc (diff)
Clarifying comments
-rw-r--r--src/exec/command.rs3
-rw-r--r--src/walk.rs1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/exec/command.rs b/src/exec/command.rs
index 1baa15d..5d546f2 100644
--- a/src/exec/command.rs
+++ b/src/exec/command.rs
@@ -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();
}
diff --git a/src/walk.rs b/src/walk.rs
index b390e8d..6edb9b2 100644
--- a/src/walk.rs
+++ b/src/walk.rs
@@ -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 {