Skip to content

Commit

Permalink
Merge pull request #6 from g-bartoszek/wasix-spawn
Browse files Browse the repository at this point in the history
Implement spawn using wasix crate
  • Loading branch information
syrusakbary authored Nov 27, 2023
2 parents e90132a + fa52f1a commit 9dfeab3
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 9dfeab3

Please sign in to comment.