From 0f98e75b69d16edce9ca60d7961b8440856a3f72 Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Thu, 9 Oct 2014 16:27:28 -0700 Subject: 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. --- src/libnative/io/mod.rs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/libnative') 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> { timer::Timer::new().map(|t| box t as Box) } - fn spawn(&mut self, cfg: rtio::ProcessConfig) - -> IoResult<(Box, - Vec>>)> { - process::Process::spawn(cfg).map(|(p, io)| { - (box p as Box, - io.into_iter().map(|p| p.map(|p| { - box p as Box - })).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> { -- cgit 1.4.1-3-g733a5