mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-05 10:50:18 +00:00
Merge pull request #10638 from justxuewei/fix-stderr-fifo
runtime-rs: Fix the issues with stderr fifo
This commit is contained in:
@@ -128,11 +128,13 @@ impl Process {
|
|||||||
|
|
||||||
pub fn pre_fifos_open(&mut self) -> Result<()> {
|
pub fn pre_fifos_open(&mut self) -> Result<()> {
|
||||||
if let Some(ref stdout) = self.stdout {
|
if let Some(ref stdout) = self.stdout {
|
||||||
self.stdout_r = Some(open_fifo_read(stdout)?);
|
self.stdout_r = Some(open_fifo_read(stdout).context("open stdout")?);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !self.terminal {
|
||||||
if let Some(ref stderr) = self.stderr {
|
if let Some(ref stderr) = self.stderr {
|
||||||
self.stderr_r = Some(open_fifo_read(stderr)?);
|
self.stderr_r = Some(open_fifo_read(stderr).context("open stderr")?);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Reference in New Issue
Block a user