From 98e1a72fe60cf69b7cc381477a3fcf88c307174b Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Wed, 12 Jan 2022 00:57:27 -0800 Subject: [PATCH] fork the stdio as well --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 70c297e..1e1b469 100644 --- a/src/main.rs +++ b/src/main.rs @@ -177,6 +177,9 @@ fn maybe_disown() { if let Ok(current_exe) = env::current_exe() { assert!(process::Command::new(current_exe) + .stdin(process::Stdio::null()) + .stdout(process::Stdio::null()) + .stderr(process::Stdio::null()) .arg("--nofork") .args(env::args().skip(1)) .spawn()