diff options
Diffstat (limited to 'src/libstd/run.rs')
| -rw-r--r-- | src/libstd/run.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/run.rs b/src/libstd/run.rs index f42163791a6..482477b2f0e 100644 --- a/src/libstd/run.rs +++ b/src/libstd/run.rs @@ -223,22 +223,22 @@ impl Process { let (p, ch) = SharedChan::new(); let ch_clone = ch.clone(); - do spawn { + spawn(proc() { let _guard = io::ignore_io_error(); let mut error = error; match error { Some(ref mut e) => ch.send((2, e.read_to_end())), None => ch.send((2, ~[])) } - } - do spawn { + }); + spawn(proc() { let _guard = io::ignore_io_error(); let mut output = output; match output { Some(ref mut e) => ch_clone.send((1, e.read_to_end())), None => ch_clone.send((1, ~[])) } - } + }); let status = self.finish(); @@ -414,9 +414,9 @@ mod tests { os::close(pipe_out.out as int); os::close(pipe_err.out as int); - do spawn { + spawn(proc() { writeclose(pipe_in.out, "test"); - } + }); let actual = readclose(pipe_out.input); readclose(pipe_err.input); process.finish(); |
