mirror of
https://github.com/michael-yuji/xc.git
synced 2026-03-18 14:55:41 +01:00
Typo fix, should have close and dup stderr instead of stdout
This commit is contained in:
@@ -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(())
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user