summaryrefslogtreecommitdiffstats
path: root/src/execute/child.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/execute/child.rs')
-rw-r--r--src/execute/child.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/execute/child.rs b/src/execute/child.rs
index b44170b..02c60e8 100644
--- a/src/execute/child.rs
+++ b/src/execute/child.rs
@@ -9,15 +9,15 @@ use super::pipe::disk::output as pipe_output;
use super::pipe::disk::State;
pub fn handle_child(mut child: Child, output: &Sender<State>, flags: u16, job_id: usize, input: String,
- has_timeout: bool, timeout: Duration, base: &str) -> (Timespec, Timespec, i32, i32)
+ has_timeout: bool, timeout: Duration, base: &str, buffer: &mut [u8]) -> (Timespec, Timespec, i32, i32)
{
let start_time = get_time();
if has_timeout && child.wait_timeout(timeout).unwrap().is_none() {
let _ = child.kill();
- pipe_output(&mut child, job_id, input, output, flags & QUIET_MODE != 0, base);
+ pipe_output(&mut child, job_id, input, output, flags & QUIET_MODE != 0, base, buffer);
(start_time, get_time(), -1, 15)
} else {
- pipe_output(&mut child, job_id, input, output, flags & QUIET_MODE != 0, base);
+ pipe_output(&mut child, job_id, input, output, flags & QUIET_MODE != 0, base, buffer);
match child.wait() {
Ok(status) => match status.code() {
Some(exit) => (start_time, get_time(), exit, 0),