From ffdff8a00af86f65e314c1b3b9801f4fcd2e0438 Mon Sep 17 00:00:00 2001 From: "Yan Ka, Chiu" Date: Thu, 13 Jul 2023 07:39:36 -0400 Subject: [PATCH] Typo fix, should have close and dup stderr instead of stdout --- xc/src/container/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xc/src/container/process.rs b/xc/src/container/process.rs index 34cf1e3..bb0785b 100644 --- a/xc/src/container/process.rs +++ b/xc/src/container/process.rs @@ -117,8 +117,8 @@ pub(super) fn spawn_process_forward( freebsd::libc::dup2(fd, 1); } if let Some(fd) = stderr { - freebsd::libc::close(1); - freebsd::libc::dup2(fd, 1); + freebsd::libc::close(2); + freebsd::libc::dup2(fd, 2); } Ok(()) });