diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-10-09 16:27:28 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-08 20:40:39 -0800 |
| commit | 0f98e75b69d16edce9ca60d7961b8440856a3f72 (patch) | |
| tree | c742de98f63f2ca7d2ac3236a35fcf6cbaa60f01 /src/libnative | |
| parent | 3d195482a45bf3ed0f12dc9d70d14192262ca711 (diff) | |
| download | rust-0f98e75b69d16edce9ca60d7961b8440856a3f72.tar.gz rust-0f98e75b69d16edce9ca60d7961b8440856a3f72.zip | |
Runtime removal: refactor process
This patch continues the runtime removal by moving and refactoring the process implementation into the new `sys` module. Because this eliminates APIs in `libnative` and `librustrt`, it is a: [breaking-change] This functionality is likely to be available publicly, in some form, from `std` in the future.
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/mod.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libnative/io/mod.rs b/src/libnative/io/mod.rs index 1d0b9f40d07..29370dee88b 100644 --- a/src/libnative/io/mod.rs +++ b/src/libnative/io/mod.rs @@ -29,13 +29,6 @@ use std::os; use std::rt::rtio::{mod, IoResult, IoError}; use std::num; -// Local re-exports -pub use self::process::Process; - -// Native I/O implementations -pub mod process; -mod util; - #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd", @@ -123,19 +116,6 @@ impl rtio::IoFactory for IoFactory { fn timer_init(&mut self) -> IoResult<Box<rtio::RtioTimer + Send>> { timer::Timer::new().map(|t| box t as Box<rtio::RtioTimer + Send>) } - fn spawn(&mut self, cfg: rtio::ProcessConfig) - -> IoResult<(Box<rtio::RtioProcess + Send>, - Vec<Option<Box<rtio::RtioPipe + Send>>>)> { - process::Process::spawn(cfg).map(|(p, io)| { - (box p as Box<rtio::RtioProcess + Send>, - io.into_iter().map(|p| p.map(|p| { - box p as Box<rtio::RtioPipe + Send> - })).collect()) - }) - } - fn kill(&mut self, pid: libc::pid_t, signum: int) -> IoResult<()> { - process::Process::kill(pid, signum) - } #[cfg(unix)] fn tty_open(&mut self, fd: c_int, _readable: bool) -> IoResult<Box<rtio::RtioTTY + Send>> { |
