diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-10-31 11:09:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-10 09:28:48 -0800 |
| commit | 6c4198469025bf037f59d617c5b75229546ce68a (patch) | |
| tree | 851ce22cb1aab5adf8259a5414fb737aa62a5286 /src/libstd/sys/windows | |
| parent | 096dbf84c7acc78283adfa46eecd41d7355f6f3e (diff) | |
| download | rust-6c4198469025bf037f59d617c5b75229546ce68a.tar.gz rust-6c4198469025bf037f59d617c5b75229546ce68a.zip | |
std: Refactor process spawning on Unix
* Build up the argp/envp pointers while the `Command` is being constructed rather than only when `spawn` is called. This will allow better sharing of code between fork/exec paths. * Rename `child_after_fork` to `exec` and have it only perform the exec half of the spawning. This also means the return type has changed to `io::Error` rather than `!` to represent errors that happen.
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/process.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index 61cf28be16f..6a04aa2f2c4 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -74,9 +74,6 @@ impl Command { pub fn arg(&mut self, arg: &OsStr) { self.args.push(arg.to_os_string()) } - pub fn args<'a, I: Iterator<Item = &'a OsStr>>(&mut self, args: I) { - self.args.extend(args.map(OsStr::to_os_string)) - } fn init_env_map(&mut self){ if self.env.is_none() { self.env = Some(env::vars_os().map(|(key, val)| { |
