Skip to content

Commit 9dfeab3

Browse files
authored
Merge pull request #6 from g-bartoszek/wasix-spawn
Implement spawn using wasix crate
2 parents e90132a + fa52f1a commit 9dfeab3

File tree

3 files changed

+181
-154
lines changed

3 files changed

+181
-154
lines changed

library/std/src/sys/unix/process/process_common.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,21 @@ impl Command {
355355
self.stderr = Some(stderr);
356356
}
357357

358+
#[allow(dead_code)]
359+
pub fn get_stdin(&self) -> Option<&Stdio> {
360+
self.stdin.as_ref()
361+
}
362+
363+
#[allow(dead_code)]
364+
pub fn get_stdout(&self) -> Option<&Stdio> {
365+
self.stdout.as_ref()
366+
}
367+
368+
#[allow(dead_code)]
369+
pub fn get_stderr(&self) -> Option<&Stdio> {
370+
self.stderr.as_ref()
371+
}
372+
358373
pub fn env_mut(&mut self) -> &mut CommandEnv {
359374
&mut self.env
360375
}

0 commit comments

Comments
 (0)