summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2023-10-16 20:11:28 +0200
committerSanto Cariotti <santo@dcariotti.me>2023-10-16 20:11:28 +0200
commitce8fb33087b449f8d0c18dafd35e0d5503d60192 (patch)
tree1c6bb04ec19a1ce6cec6ac08cdc5b20ef98275ea
parent74c390ef4deea9b042f55a4cfef5d1668408a2c2 (diff)
Redirect subprocess output to /dev/null
-rw-r--r--src/trace.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trace.rs b/src/trace.rs
index bd38fa4..cbb52c3 100644
--- a/src/trace.rs
+++ b/src/trace.rs
@@ -10,10 +10,9 @@ use nix::{
};
use std::{
fs::File,
- // fs::File,
io::{self, Write},
os::unix::process::CommandExt,
- process::Command,
+ process::{Command, Stdio},
str,
};
@@ -23,6 +22,7 @@ pub fn exec(command: &str) -> anyhow::Result<()> {
let mut command = Command::new(params[0]);
command.args(params[1..].iter());
+ command.stdout(Stdio::null());
unsafe {
command.pre_exec(|| ptrace::traceme().map_err(|e| e.into()));