fork the stdio as well

macos-click-through
Keith Simmons 3 years ago
parent 4424731ba4
commit 98e1a72fe6

@ -177,6 +177,9 @@ fn maybe_disown() {
if let Ok(current_exe) = env::current_exe() { if let Ok(current_exe) = env::current_exe() {
assert!(process::Command::new(current_exe) assert!(process::Command::new(current_exe)
.stdin(process::Stdio::null())
.stdout(process::Stdio::null())
.stderr(process::Stdio::null())
.arg("--nofork") .arg("--nofork")
.args(env::args().skip(1)) .args(env::args().skip(1))
.spawn() .spawn()

Loading…
Cancel
Save