mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
process: Track tokio-core master
This commit is contained in:
+4
-4
@@ -8,7 +8,7 @@ use std::path::Path;
|
||||
use std::process::{self, ExitStatus};
|
||||
|
||||
use futures::{Future, Poll};
|
||||
use tokio_core::LoopHandle;
|
||||
use tokio_core::reactor::Handle;
|
||||
|
||||
#[path = "unix.rs"]
|
||||
#[cfg(unix)]
|
||||
@@ -21,7 +21,7 @@ mod imp;
|
||||
pub struct Command {
|
||||
inner: process::Command,
|
||||
#[allow(dead_code)]
|
||||
handle: LoopHandle,
|
||||
handle: Handle,
|
||||
}
|
||||
|
||||
pub struct Spawn {
|
||||
@@ -33,11 +33,11 @@ pub struct Child {
|
||||
}
|
||||
|
||||
impl Command {
|
||||
pub fn new<T: AsRef<OsStr>>(exe: T, handle: &LoopHandle) -> Command {
|
||||
pub fn new<T: AsRef<OsStr>>(exe: T, handle: &Handle) -> Command {
|
||||
Command::_new(exe.as_ref(), handle)
|
||||
}
|
||||
|
||||
fn _new(exe: &OsStr, handle: &LoopHandle) -> Command {
|
||||
fn _new(exe: &OsStr, handle: &Handle) -> Command {
|
||||
Command {
|
||||
inner: process::Command::new(exe),
|
||||
handle: handle.clone(),
|
||||
|
||||
Reference in New Issue
Block a user