From 05d206058299ae6abfe9e51cbbd53aeed4ccf644 Mon Sep 17 00:00:00 2001 From: pjht Date: Fri, 8 Nov 2024 12:19:04 -0600 Subject: [PATCH] mikros: Make stdio inheriting the default on process spawn --- library/std/src/sys/pal/mikros/process.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/library/std/src/sys/pal/mikros/process.rs b/library/std/src/sys/pal/mikros/process.rs index 8deab33a1de..1934b08190b 100644 --- a/library/std/src/sys/pal/mikros/process.rs +++ b/library/std/src/sys/pal/mikros/process.rs @@ -107,23 +107,20 @@ pub fn spawn( _needs_stdin: bool, ) -> io::Result<(Process, StdioPipes)> { let stdin = match self.stdin.take() { - None => None, Some(Stdio::Null) => None, - Some(Stdio::Inherit) => *STDIN_FD.get().unwrap(), + None | Some(Stdio::Inherit) => *STDIN_FD.get().unwrap(), Some(Stdio::MakePipe) => todo!(), Some(Stdio::InheritFile(file)) => Some((file.fs_pid, file.fd)), }; let stdout = match self.stdout.take() { - None => None, Some(Stdio::Null) => None, - Some(Stdio::Inherit) => *STDOUT_FD.get().unwrap(), + None | Some(Stdio::Inherit) => *STDOUT_FD.get().unwrap(), Some(Stdio::MakePipe) => todo!(), Some(Stdio::InheritFile(file)) => Some((file.fs_pid, file.fd)), }; let stderr = match self.stderr.take() { - None => None, Some(Stdio::Null) => None, - Some(Stdio::Inherit) => *STDERR_FD.get().unwrap(), + None | Some(Stdio::Inherit) => *STDERR_FD.get().unwrap(), Some(Stdio::MakePipe) => todo!(), Some(Stdio::InheritFile(file)) => Some((file.fs_pid, file.fd)), };