Skip to content

Commit

Permalink
Implement proc_spawn using wasix crate
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bartoszek committed Sep 8, 2023
1 parent 1d95b4b commit fa52f1a
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 154 deletions.
15 changes: 15 additions & 0 deletions library/std/src/sys/unix/process/process_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,21 @@ impl Command {
self.stderr = Some(stderr);
}

#[allow(dead_code)]
pub fn get_stdin(&self) -> Option<&Stdio> {
self.stdin.as_ref()
}

#[allow(dead_code)]
pub fn get_stdout(&self) -> Option<&Stdio> {
self.stdout.as_ref()
}

#[allow(dead_code)]
pub fn get_stderr(&self) -> Option<&Stdio> {
self.stderr.as_ref()
}

pub fn env_mut(&mut self) -> &mut CommandEnv {
&mut self.env
}
Expand Down
Loading

0 comments on commit fa52f1a

Please sign in to comment.