Revert "Close stdios when fork/exec'ing virtmgr"
This reverts commit 2a08574ebab431109600b2071a52d8e10ec30bf6.
Reason for revert: this broke the `vm console` case
Change-Id: Iebc30862713ae0215a652a55f45ac14b741e4c4f
diff --git a/libs/libvmclient/src/lib.rs b/libs/libvmclient/src/lib.rs
index fe86504..7b576e6 100644
--- a/libs/libvmclient/src/lib.rs
+++ b/libs/libvmclient/src/lib.rs
@@ -45,7 +45,6 @@
use shared_child::SharedChild;
use std::io::{self, Read};
use std::process::Command;
-use std::process::Stdio;
use std::{
fmt::{self, Debug, Formatter},
fs::File,
@@ -91,9 +90,6 @@
let (client_fd, server_fd) = posix_socketpair()?;
let mut command = Command::new(VIRTMGR_PATH);
- command.stdin(Stdio::null());
- command.stdout(Stdio::null());
- command.stderr(Stdio::null());
// Can't use BorrowedFd as it doesn't implement Display
command.arg("--rpc-server-fd").arg(format!("{}", server_fd.as_raw_fd()));
command.arg("--ready-fd").arg(format!("{}", ready_fd.as_raw_fd()));